mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-29 04:19:15 -07:00
ACI: Fixes to recent change to parameter choices (#35968)
This PR includes: - Fixes related to the recent merge of #31637 and #34537 - A generic fix for a reference for assignment issue - Fixes to aci.boolean() in order to catch exception
This commit is contained in:
parent
d76db835ff
commit
01ba3a4efc
8 changed files with 42 additions and 36 deletions
|
@ -269,28 +269,25 @@ def main():
|
|||
],
|
||||
)
|
||||
|
||||
aci = ACIModule(module)
|
||||
|
||||
if not HAS_DATEUTIL:
|
||||
module.fail_json(msg='dateutil required for this module')
|
||||
|
||||
aaa_password = module.params['aaa_password']
|
||||
aaa_password_lifetime = module.params['aaa_password_lifetime']
|
||||
aaa_password_update_required = module.params['aaa_password_update_required']
|
||||
aaa_password_update_required = aci.boolean(module.params['aaa_password_update_required'])
|
||||
aaa_user = module.params['aaa_user']
|
||||
clear_password_history = module.params['clear_password_history']
|
||||
description = module.params['description']
|
||||
email = module.params['email']
|
||||
enabled = module.params['enabled']
|
||||
enabled = aci.boolean(module.params['enabled'], 'active', 'inactive')
|
||||
expires = aci.boolean(module.params['expires'])
|
||||
first_name = module.params['first_name']
|
||||
last_name = module.params['last_name']
|
||||
phone = module.params['phone']
|
||||
state = module.params['state']
|
||||
|
||||
aci = ACIModule(module)
|
||||
|
||||
aaa_password_update_required = aci.boolean(module.params['aaa_password_update_required'])
|
||||
enabled = aci.boolean(module.params['enabled'], 'active', 'inactive')
|
||||
expires = aci.boolean(module.params['expires'])
|
||||
|
||||
expiration = module.params['expiration']
|
||||
if expiration is not None and expiration != 'never':
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue