Fixed stat of symlinked dirs

pull/3340/head
Bruce Pennypacker 12 years ago
parent 19b8de7ede
commit 59a045e4cb

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

Loading…
Cancel
Save