summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhawkesworth <jhawkesworth@users.noreply.github.com>2017-05-31 05:40:10 +0100
committerGitHub <noreply@github.com>2017-05-31 05:40:10 +0100
commit9cf128a2228e0b9c24fd7bbbcde723dcf2e6bd83 (patch)
tree2150ab301cbf31a58c13202d4a59027ca35a5d66
parent773d63e6b62da5437d715b13fd0ec55f445c4c7e (diff)
downloadansible-jhawkesworth-win_stat-exists.tar.gz
Added missing filename attribute to RETURNjhawkesworth-win_stat-exists
Also made the path and filename sample values consistent.
-rw-r--r--lib/ansible/modules/windows/win_stat.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ansible/modules/windows/win_stat.py b/lib/ansible/modules/windows/win_stat.py
index 4951fd637b..0238c70a48 100644
--- a/lib/ansible/modules/windows/win_stat.py
+++ b/lib/ansible/modules/windows/win_stat.py
@@ -140,6 +140,11 @@ stat:
returned: success, path exists, path is a file
type: string
sample: ".ps1"
+ filename:
+ description: the name of the file (without path)
+ returned: success, path exists, path is a file
+ type: string
+ sammple: foo.ini
isarchive:
description: if the path is ready for archiving or not
returned: success, path exists
@@ -197,9 +202,9 @@ stat:
sample: BUILTIN\Administrators
path:
description: the full absolute path to the file
- returned: success, path exists
+ returned: success, path exists, file exists
type: string
- sample: BUILTIN\Administrators
+ sample: C:\foo.ini
sharename:
description: the name of share if folder is shared
returned: success, path exists, file is a directory and isshared == True