summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py')
-rw-r--r--lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py b/lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py
index 2f83674463..c22c7428d0 100644
--- a/lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py
+++ b/lib/ansible/modules/network/aci/aci_switch_policy_leaf_profile.py
@@ -203,9 +203,9 @@ def main():
],
)
- leaf_profile = module.params['leaf_profile']
- description = module.params['description']
- state = module.params['state']
+ leaf_profile = module.params.get('leaf_profile')
+ description = module.params.get('description')
+ state = module.params.get('state')
aci = ACIModule(module)
aci.construct_url(