kabanero-io / kabanero-landing

A console application for managing your Kabanero instances. This repo will be archived soon.
Apache License 2.0
4 stars 6 forks source link

Stacks don't load when CLI returns missing "images" key in curated stacks JSON #240

Closed alohr51 closed 4 years ago

alohr51 commented 4 years ago

Describe the bug

CLI used to return a images array for each curated stack version object (see https://github.com/kabanero-io/kabanero-command-line-services/issues/193 for details) we fail to parse the JSON when that images array is missing in the curated stacks JSON.

We need to be more resilient in our key checking so we don't fail parsing, which in turn stops the execution before stacks are shown.

Expected behavior

show stacks even if the images key is missing from JSON

Actual behavior

stacks don't load

Environment where the bug occurred

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context