Skip to content

Commit

Permalink
Sanity test fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble authored Oct 23, 2021
1 parent 20a95a1 commit a8c7269
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/modules/efs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@
type: int
transition_to_ia:
description:
- How many days before objects transition to the lower-cost EFS Infrequent Access (IA) storage class. If set to None, any existing lifecyle policy will be removed, and objects will not transition to an IA storage class. If this parameter is absent or left empty, any existing lifecycle policy will not be affected.
default: not set
- How many days before objects transition to the lower-cost EFS Infrequent Access (IA) storage class.
- If set to the string C(None), any existing lifecyle policy will be removed, and objects will not transition
to an IA storage class.
- If this parameter is absent, any existing lifecycle policy will not be affected.
choices: ['None', '7', '14', '30', '60', '90']
Expand Down Expand Up @@ -510,11 +512,11 @@ def update_lifecycle_policy(self, name, transition_to_ia):
if transition_to_ia == 'None':
LifecyclePolicies = []
else:
LifecyclePolicies = [{ 'TransitionToIA': 'AFTER_' + transition_to_ia + '_DAYS' }]
LifecyclePolicies = [{'TransitionToIA': 'AFTER_' + transition_to_ia + '_DAYS'}]
if current_policies.get('LifecyclePolicies') != LifecyclePolicies:
response = self.connection.put_lifecycle_configuration(
FileSystemId=fs_id,
LifecyclePolicies = LifecyclePolicies
LifecyclePolicies=LifecyclePolicies,
)
changed = True
return changed
Expand Down

0 comments on commit a8c7269

Please sign in to comment.