Skip to content

Commit 9ae4f12

Browse files
[Documentation] Update zos_fetch documentation to be clear about flat value (#2047)
* Updated zos_fetch documentation * Updated changelogs
1 parent 8bc67a4 commit 9ae4f12

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
minor_changes:
2+
- zos_fetch - Updated the documentation to correctly state what the default behavior of the module is.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/2047).

plugins/modules/zos_fetch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
type: bool
7171
flat:
7272
description:
73-
- Override the default behavior of appending hostname/path/to/file to the
74-
destination. If set to "true", the file or data set will be fetched to
73+
- If set to "true", override the default behavior of appending hostname/path/to/file to the
74+
destination, instead the file or data set will be fetched to
7575
the destination directory without appending remote hostname to the
7676
destination.
7777
required: false
78-
default: "true"
78+
default: "false"
7979
type: bool
8080
is_binary:
8181
description:
@@ -848,7 +848,7 @@ def run_module():
848848
src=dict(required=True, type="str"),
849849
dest=dict(required=True, type="path"),
850850
fail_on_missing=dict(required=False, default=True, type="bool"),
851-
flat=dict(required=False, default=True, type="bool"),
851+
flat=dict(required=False, default=False, type="bool"),
852852
is_binary=dict(required=False, default=False, type="bool"),
853853
use_qualifier=dict(required=False, default=False, type="bool"),
854854
validate_checksum=dict(required=False, default=True, type="bool"),

0 commit comments

Comments
 (0)