mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Ensure complex_args is considered in all action_plugins
This commit is contained in:
parent
297259725a
commit
ae8d6ac303
10 changed files with 39 additions and 14 deletions
|
@ -379,7 +379,8 @@ class AnsibleModule(object):
|
|||
return changed
|
||||
try:
|
||||
# FIXME: support English modes
|
||||
mode = int(mode, 8)
|
||||
if not isinstance(mode, int):
|
||||
mode = int(mode, 8)
|
||||
except Exception, e:
|
||||
self.fail_json(path=path, msg='mode needs to be something octalish', details=str(e))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue