mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-16 22:01:15 +00:00
clarified message
This commit is contained in:
@@ -892,7 +892,7 @@ class AnsibleModule(object):
|
||||
|
||||
if mode != stat.S_IMODE(mode):
|
||||
# prevent mode from having extra info orbeing invalid long number
|
||||
self.fail_json(path=path, msg="Invalid mode supplied", details=str(e))
|
||||
self.fail_json(path=path, msg="Invalid mode supplied, only permission info is allowed", details=mode)
|
||||
|
||||
prev_mode = stat.S_IMODE(path_stat.st_mode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user