ansible-collections / ibm_zos_core

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

[Bug] zos_lineinfile did not work properly with datasets using regex option and insert before or after #1244

Open AndreMarcel99 opened 9 months ago

AndreMarcel99 commented 9 months ago

Is there an existing issue for this?

Are the dependencies a supported version?

IBM Z Open Automation Utilities

v1.2.5

IBM Enterprise Python

v3.11.x

IBM z/OS Ansible core Version

v1.8.0-beta.1

ansible-version

v2.15.x

z/OS version

None

Ansible module

zos_lineinfile

Bug description

Output of a uss: 'dsedhelper -d -c IBM-1047 -s -e /abcxyz/c\\ZOAU_ROOT=/mvsutil-develop_dsed/$ -e /ZOAU_ROOT=/a\\ZOAU_ROOT=/mvsutil-develop_dsed/$ -e $ a\\ZOAU_ROOT=/mvsutil-develop_dsed /tmp/ansible-core-tests/zos_lineinfile/test_uss_line_replace_nomatch_insertafter_match ' Output of a ds: 'BGYSC4909E Unable to write into dataset ANSIBLE.PCV3BTKF.T4233329.CX3V6Z02\n' with the call 'dsedhelper -d -c IBM-1047 -s -e /abcxyz/c\\ZOAU_ROOT=/mvsutil-develop_dsed/$ -e /ZOAU_ROOT=/a\\ZOAU_ROOT=/mvsutil-develop_dsed/$ -e $ a\\ZOAU_ROOT=/mvsutil-develop_dsed ANSIBLE.PCV3BTKF.T4233329.CX3V6Z02

Playbook verbosity output.

No response

Ansible configuration.

With ZOAU 1.3

Contents of the inventory

No response

Contents of group_vars or host_vars

No response

AndreMarcel99 commented 8 months ago

[NAZARE-10439]