-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proceed with destruction of other groups even if current failed #2575
Proceed with destruction of other groups even if current failed #2575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that the primary impact here will be to allow the destruction of the first N groups without any dependencies on preceding groups. For most blueprints, this will be the first group.
- Please fix the spelling of the function name
- The upper-case Y suggests to me that I should be able to enter empty string and get "Yes". In fact, it recycles the prompt.
I see 2 solutions for the 2nd point:
"" == "y"
(my preference)sed s,Y,y,
...
🤘
Additionally, the prompt should skip |
* Add a prompt `"Do you want to delete the next group %q [Y/n]?: "`; * Re-use `--auto-approve` flag.
21c75dc
to
d4b3a6c
Compare
That would make a very implicit behavior, we still want to perform "destroy" them (deal with manifest), but in prompt output name of the next-non-packer group ? What if all "next" groups are packer ones, what to prompt for? I would rather keep it as is , and hope for soon death of packer groups. |
Right now, the only action a Packer destroy takes is to print some very basic guidance to the user about how to manually delete the images. It doesn't prompt even without "--auto-approve. It seems to me that it's harmless to print those instructions no matter what. And, yes, IMO a blueprint that was all Packer modules should not generate any prompts (given our current level of support). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on offline discussion, I'm approving. I believe the prompt is not useful given current functionality for "packer destroy
" but I think it will be useful in the future.
Motivation: to accommodate destruction of multi-group deployments where
non-last group failed to deploy.
"Do you want to delete the next group %q [Y/n]?: "
;--auto-approve
flag.Testing: