mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix modules' use of BOOLEANS*
* The canonical location of BOOLEANS has moved. Switch imports to use that. * clean up argument_spec use of booleans. * Clean up imports to not use wildcards * Remove usage of get_exception
This commit is contained in:
@@ -231,7 +231,7 @@ def main():
|
||||
link=dict(required=True, default=None, type='str', aliases=['nic', 'interface']),
|
||||
property=dict(required=True, type='str', aliases=['name']),
|
||||
value=dict(required=False, type='str'),
|
||||
temporary=dict(default=False, type='bool', choices=BOOLEANS),
|
||||
temporary=dict(default=False, type='bool'),
|
||||
state=dict(
|
||||
default='present', choices=['absent', 'present', 'reset']),
|
||||
),
|
||||
@@ -298,6 +298,5 @@ def main():
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user