diff --git a/plugins/modules/efs.py b/plugins/modules/efs.py index b3627ba957b..ab483d3965e 100644 --- a/plugins/modules/efs.py +++ b/plugins/modules/efs.py @@ -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'] @@ -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