fix issue with DeleteChangeSet.

We cannot delete a changeset in the loop as that will upset OrderedDict.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
Kai Xia 2021-08-06 20:04:51 +10:00
parent 76094f012b
commit 98274f4124

View File

@ -665,7 +665,9 @@ class CloudFormationBackend(BaseBackend):
else:
for cs in self.change_sets:
if self.change_sets[cs].change_set_name == change_set_name:
del self.change_sets[cs]
to_delete = cs
break
del self.change_sets[to_delete]
def describe_change_set(self, change_set_name, stack_name=None):
change_set = None