Skip to content
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

Fixes issue with non-interactive changeset updates & stack policies #657

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

phobologic
Copy link
Member

create change set doesn't allow a stack_policy argument like
create/update stack calls. This was handled in the interactive version,
but not in the non-interactive version.

Fixes #650

create change set doesn't allow a `stack_policy` argument like
create/update stack calls.  This was handled in the interactive version,
but not in the non-interactive version.

Fixes #650
@@ -914,6 +947,8 @@ def noninteractive_changeset_update(self, fqn, template, old_parameters,
'UPDATE', service_role=self.service_role, **kwargs
)

self.deal_with_changeset_stack_policy(fqn, stack_policy)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool, so this is the bug, you refactored the logic so you could call it here.

Copy link
Contributor

@ejholmes ejholmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was handled in the interactive version,
but not in the non-interactive version.

I didn't even realize we hit changesets in non-interactive. In what scenario is that possible? When a stack is protected?

@phobologic
Copy link
Member Author

@phobologic phobologic merged commit ed7ce1c into master Sep 7, 2018
@phobologic phobologic deleted the fix_stack_policy_non_interactive_changesets branch September 7, 2018 15:54
@nielslaukens
Copy link
Contributor

@ejholmes ChangeSets are required when a Transform is present, both on create & on update.

phrohdoh pushed a commit to phrohdoh/stacker that referenced this pull request Dec 18, 2018
…loudtools#657)

create change set doesn't allow a `stack_policy` argument like
create/update stack calls.  This was handled in the interactive version,
but not in the non-interactive version.

Fixes cloudtools#650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants