mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
Fixed stat of symlinked dirs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user