mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 23:09:09 -07:00
Fix invocations of module.fail_json with no msg=
Bonus: add missing % in cs_nic.py
This commit is contained in:
parent
91860b2423
commit
ec9582fd83
15 changed files with 25 additions and 25 deletions
|
@ -321,7 +321,7 @@ class User(object):
|
|||
self.expires = time.gmtime(module.params['expires'])
|
||||
except Exception:
|
||||
e = get_exception()
|
||||
module.fail_json("Invalid expires time %s: %s" %(self.expires, str(e)))
|
||||
module.fail_json(msg="Invalid expires time %s: %s" %(self.expires, str(e)))
|
||||
|
||||
if module.params['ssh_key_file'] is not None:
|
||||
self.ssh_file = module.params['ssh_key_file']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue