ibm_zos_core
ibm_zos_core copied to clipboard
[Bug] [zos_copy] Character "£" not supported in dataset name
SUMMARY
A UK user reported than using "£" in a dataset name as a src to zos_copy fails with error :
fatal: [winmvsb0]: FAILED! => {"changed": false, "msg": "Parameter verification failed", "rc": null, "stderr": "Invalid argument "CBSA.A.JENKINS.JCL.INSTALL(DFH£SIP1)" for type "data_set" or "path".", "stderr_lines": ["Invalid argument "CBSA.A.JENKINS.JCL.INSTALL(DFH£SIP1)" for type "data_set" or "path"."], "stdout": null, "stdout_lines": null}
This is because in the arg parser we do not support this but only the special characters "$", "@" "#" and "-". Problem here is that UK codeset for "$" is the same as the "£".
This raises the question, is this only happening with the pound ?
COMPONENT NAME
zos_copy
ANSIBLE VERSION
Ansible version output:
SPECIFY ANSIBLE COLLECTION VERSION
SPECIFY THE Z OPEN AUTOMATION UTILITIES VERSION
ENVIRONMENT
STEPS TO REPRODUCE
Reproduction playbook/yaml
- name: Copy a local file to a sequential data set
zos_copy:
src: CBSA.A.JENKINS.JCL.INSTALL(DFH£SIP1)
dest: SAMPLE.SEQ.DATA.SET
EXPECTED RESULTS
Dataset is successfully copied.
ACTUAL RESULTS
Playbook output:
fatal: [winmvsb0]: FAILED! => {"changed": false, "msg": "Parameter verification failed", "rc": null, "stderr": "Invalid argument \"CBSA.A.JENKINS.JCL.INSTALL(DFH£SIP1)\" for type \"data_set\" or \"path\".", "stderr_lines": ["Invalid argument \"CBSA.A.JENKINS.JCL.INSTALL(DFH£SIP1)\" for type \"data_set\" or \"path\"."], "stdout": null, "stdout_lines": null}
CONFIGURATION
Ansible.cfg
'ansible-config dump --only-changed' output:
Inventory
Inventory content:
Vars
'group_vars' or 'host_vars' content: