Fixed stat of symlinked dirs

This commit is contained in:
Bruce Pennypacker 2013-06-25 14:14:18 -04:00
parent 8f19762748
commit 88d9145235

View file

@ -91,6 +91,11 @@ def main():
'isgid' : bool(mode & stat.S_ISGID),
}
if S_ISDIR(mode) and os.path.islink(path):
d['isdir'] = False
d['islnk'] = True
module.exit_json(changed=False, stat=d)
# this is magic, see lib/ansible/module_common.py