-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Module zos_mvs_raw errors with long multi-line quoted string in content field #374
Comments
Hi @PedroTreeev I executed the sample playbook and the error was different than the described :
Could you please review and share the correct playbook. |
I was able to reproduce the issue, using :
|
@fernandofloresg I was comparing your recreation (playbook above) to the issue #373 and could not see much of a difference other than the content in #373 started with a leading space. I used your solution from #373 to add the block style indicator and used @PedroTreeev's playbook and it ran fine, when I removed the block style indicator i got the below error:
For me all this works so long as there is a block style indicator, see my attached playbook. Could you confirm what I saw and if we both see success then we can rely on a doc update to clarify things and we can close this |
@PedroTreeev
|
SUMMARY
When using module
zos_mvs_raw
with programIDCAMS
in the parameterCONTENT
inserting a string the quote is interpreted as content and escaped, getting the message"IDC3211I KEYWORD '\"' IS IMPROPER"
COMPONENT NAME
zos_mvs_raw
ANSIBLE VERSION
SPECIFY ANSIBLE COLLECTION VERSION
version": "1.4.0-beta.1
SPECIFY THE Z OPEN AUTOMATION UTILITIES VERSION
zoau version 1.1.1
ENVIRONMENT
z/OS 2.4
IBM Enterprise Python 3.8.2
STEPS TO REPRODUCE
In the definition of clusters, on the CONTENT paramter, using large strings
When you try to execute the playbooks, it will fail on the
Define clusters
task with the next message"IDC3211I KEYWORD '\"' IS IMPROPER"
EXPECTED RESULTS
Is expected that
CONTENT
read the entire block of JCL code without any problem, allowing the definition of the cluster that will lead to the creation of 2 files with extension.DATA
and.INDEX
ACTUAL RESULTS
The execution of the playbook continues but without define the clusters, it just returns
"IDC3211I KEYWORD '\"' IS IMPROPER"
and code 12CONFIGURATION
Ansible.cfg
Inventory
Vars
SCREENSHOTS
The text was updated successfully, but these errors were encountered: