SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 5 forks source link

`cf html5-list` leaves "garbage" instance of app-runtime after successful execution #23

Closed micellius closed 4 years ago

micellius commented 4 years ago

Description

In case there were no app-runtime service instance of html5-apps-repo in the space and cf html5-list is executed, it creates service instance of app-runtime, which tries to delete as part of cleanup phase. The problem is that if list of apps was successfully obtained, but cleanup failed, plugin still reports OK, and user does not know that part of the operation failed leaving "garbage" in space. The service instance (with last operation: delete failed) is useless, since it can't be bound to app or used to create service keys.

cf html5-list should fail if cleanup fails and should report user friendly error message

Environment