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)