ansible-collections / ibm_zos_core

Red Hat Ansible Certified Content for IBM Z
75 stars 44 forks source link

[bugfix][1520]mvs_raw_fix_verbose_and_first_character #1543

Closed AndreMarcel99 closed 2 weeks ago

AndreMarcel99 commented 2 weeks ago
SUMMARY

The dd_output by default use configuration of control that's why the first character was ignore, change now allows to be a regular dataset.

Fixes #1520

ISSUE TYPE
ADDITIONAL INFORMATION

new output

ok: [zvm] => {
    "output": {
        "backups": [],
        "changed": true,
        "dd_names": [
            {
                "byte_count": 5,
                "content": [
                    "abcd",
                    ""
                ],
                "dd_name": "stdout",
                "name": "OMVSADM.P6777740.T0791028.C0000000",
                "record_count": 2
            }
        ],
        "failed": false,
        "ret_code": {
            "code": 0
        },
        "stdout": "BGYSC0307I Program: <bpxbatch> Arguments: <SH echo abcd>\nBGYSC0308I DDNames:\nBGYSC0312I   STDOUT=OMVSADM.P6777740.T0791028.C0000000\nBGYSC0303I Dataset allocation succeeded for STDOUT=OMVSADM.P6777740.T0791028.C0000000\nBGYSC0328I OS Load program BPXBATCH\nBGYSC0320I Addressing mode: AMODE31\nBGYSC0327I Attach Exit code: 0 from BPXBATCH\nBGYSC0338I Dataset free succeeded for STDOUT=OMVSADM.P6777740.T0791028.C0000000\n",
        "stdout_lines": [
            "BGYSC0307I Program: <bpxbatch> Arguments: <SH echo abcd>",
            "BGYSC0308I DDNames:",
            "BGYSC0312I   STDOUT=OMVSADM.P6777740.T0791028.C0000000",
            "BGYSC0303I Dataset allocation succeeded for STDOUT=OMVSADM.P6777740.T0791028.C0000000",
            "BGYSC0328I OS Load program BPXBATCH",
            "BGYSC0320I Addressing mode: AMODE31",
            "BGYSC0327I Attach Exit code: 0 from BPXBATCH",
            "BGYSC0338I Dataset free succeeded for STDOUT=OMVSADM.P6777740.T0791028.C0000000"
        ]
    }
}
Captura de pantalla 2024-06-12 a la(s) 11 43 20 a m Captura de pantalla 2024-06-12 a la(s) 11 43 49 a m