Commit 59a045e4 by Bruce Pennypacker

Fixed stat of symlinked dirs

parent 19b8de7e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment