Skip to content

Commit 46c4f28

Browse files
[bugfix][1520]mvs_raw_fix_verbose_and_first_character (#1543)
* Fix verbose and first character * Add fragment * Update 1543-mvs_raw_fix_verbose_and_first_character.yml correcting section header. --------- Co-authored-by: Rich Parker <[email protected]>
1 parent cbad2f4 commit 46c4f28

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bugfixes:
2+
- zos_mvs_raw - DD_output first character from each line was missing. Change now includes the first character
3+
of each line.
4+
(https://github.com/ansible-collections/ibm_zos_core/pull/1543).

plugins/module_utils/dd_statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ class OutputDefinition(DataDefinition):
819819
def __init__(
820820
self,
821821
tmphlq="",
822-
record_format="FBA",
822+
record_format="FB",
823823
space_primary=100,
824824
space_secondary=50,
825825
space_type="trk",

plugins/module_utils/zos_mvs_raw.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def execute(pgm, dds, parm="", debug=False, verbose=False, tmp_hlq=None):
6060
MVSCmd._build_command(pgm, dds, parm),
6161
)
6262
rc, out, err = module.run_command(command)
63+
if rc == 0 and verbose:
64+
out = err
6365
return MVSCmdResponse(rc, out, err)
6466

6567
@staticmethod
@@ -90,6 +92,8 @@ def execute_authorized(pgm, dds, parm="", debug=False, verbose=False, tmp_hlq=No
9092
MVSCmd._build_command(pgm, dds, parm),
9193
)
9294
rc, out, err = module.run_command(command)
95+
if rc == 0 and verbose:
96+
out = err
9397
return MVSCmdResponse(rc, out, err)
9498

9599
@staticmethod

0 commit comments

Comments
 (0)