[Feature Request/Bug?] bosh recreate -n <non-existent-instance-group> should give the user an error instead of doing nothing.
Hi:
I try to use bosh recreate -n diego-cell in a script to recreate all the diego cells, it runs without an error (exit 0) but doing nothing.
It turns out the Ops manager is using diego_cell as instance group name instead of diego-cell like cf-deployment, and bosh just ignore it since instance group diego-cell doesn't exist.
I think it would make the user experience better if bosh gives an error like instance group diego-cell doesn't exist and exit with an error, instead of just running successfully and returns 0, so that way the user can know something goes wrong and fix the error in their script.
Thoughts?
Regards Kai
Agreed for improved UX. If a hard error is undesired, could emit a warning as part of the task output. Something along the lines of "No instances matched the requested filter".
Closing and reopening for story
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/173543374
The labels on this github issue will be updated when the story is started.
This issue was marked as Stale because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale label or comment below.
This issue was closed because it has been labeled Stale for 7 days without subsequent activity. Feel free to re-open this issue at any time by commenting below.