From a8c7269768259f942c9d1d3a09022a4a20d67577 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Sat, 23 Oct 2021 09:07:12 +0200 Subject: [PATCH] Sanity test fixups --- plugins/modules/efs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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