Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Aug 30, 2024
1 parent e016cfb commit c80c542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/ec2_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2390,9 +2390,9 @@ def enforce_count(

current_count = len(existing_matches)
if current_count == exact_count:
if desired_module_state != 'present':
if desired_module_state != "present":
results = ensure_instance_state(desired_module_state)
if results['changed']:
if results["changed"]:
return results
return dict(
changed=False,
Expand Down

0 comments on commit c80c542

Please sign in to comment.