Open ddimatos opened 1 year ago
Tracker NAZARE-10029
Tracker 10029 has updated the doc to include curly braces need to be escaped, this is something we need to try:
regexp: '[A-Za-z][0-9]\\{6\\}'
Then decide on if this is sufficient to put the onus on users to escape or should we push escaping to down to the utils or dependency.
Add'l tracker NAZARE-10268 for the 2nd portion of the problem
Is there an existing issue for this?
Are the dependencies a supported version?
IBM Z Open Automation Utilities
v1.2.3
IBM Enterprise Python
v3.9.x
IBM z/OS Ansible core Version
v1.6.0
ansible-version
v2.15.x
z/OS version
v2.5
Ansible module
zos_lineinfile
Bug description
I have a data set with content
When using a regex to match like so
regexp: '[A-Za-z][0-9]{6}'
, no match occurs yet if i change the regex to a compatible string likeregexp: 'D160882'
it matches.This issue has been diagnosed and exists in ZOAU, thus this git issue is in place to add a test case because this should have never passed our regression and to validate a fix when available.
The second part of this issue that needs validating is the response, when I used the regex string match, zoau reported it found 3
{"cmd": "dsedhelper -d -c IBM-1047 /D160882/d ANSIBLE.LISTCAT.INPUT ", "found": 3, "changed": 1}
and changed only 1, yet it actually changed 3 by deleting all 3 of these:Related to discussion #907
My recreate is:
Playbook verbosity output.
No response
Ansible configuration.
No response
Contents of the inventory
No response
Contents of
group_vars
orhost_vars
No response