1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

clarified message

This commit is contained in:
Brian Coca 2016-03-04 14:44:03 -05:00
parent 8867d73420
commit 62ac5c047e

View file

@ -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)