Skip to content

Commit 96fb2be

Browse files
committed
bit more refactoring
1 parent 7bc375c commit 96fb2be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstack-core/localstack/services/cloudformation/engine/v2/change_set_model_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _process_event(
116116
resource_type=None,
117117
):
118118
status_from_action = special_action or EventOperationFromAction[action.value]
119-
if event_status.value == OperationStatus.SUCCESS.value:
119+
if event_status == OperationStatus.SUCCESS:
120120
status = f"{status_from_action}_COMPLETE"
121121
else:
122122
status = f"{status_from_action}_{event_status.name}"
@@ -129,7 +129,7 @@ def _process_event(
129129
resource_status_reason=reason,
130130
)
131131

132-
if event_status.value == OperationStatus.FAILED.value:
132+
if event_status == OperationStatus.FAILED:
133133
self._change_set.stack.set_stack_status(StackStatus(status))
134134

135135
def _after_deployed_property_value_of(

0 commit comments

Comments
 (0)