Skip to content

Commit

Permalink
Avoid update_lifecycle_policy potentially overriding changed=True bac…
Browse files Browse the repository at this point in the history
…k to changed=False
  • Loading branch information
tremble authored Oct 23, 2021
1 parent a8c7269 commit 46b066c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/efs.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def main():
changed = connection.converge_file_system(name=name, tags=tags, purge_tags=purge_tags, targets=targets,
throughput_mode=throughput_mode, provisioned_throughput_in_mibps=provisioned_throughput_in_mibps) or changed
if transition_to_ia:
changed = connection.update_lifecycle_policy(name, transition_to_ia)
changed |= connection.update_lifecycle_policy(name, transition_to_ia)
result = first_or_default(connection.get_file_systems(CreationToken=name))

elif state == 'absent':
Expand Down

0 comments on commit 46b066c

Please sign in to comment.