Skip to content
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][zos_operator] Running a command in list fails with command invalid #1817

Open
1 task done
fernandofloresg opened this issue Nov 28, 2024 · 0 comments
Open
1 task done
Assignees
Labels
Backlog Bug Something isn't working as designed.

Comments

@fernandofloresg
Copy link
Collaborator

fernandofloresg commented Nov 28, 2024

Is there an existing issue for this?

  • There are no existing issues.

Bug description

Running the following sample in a list fails

    - name: Check VSAM allocation
      ibm.ibm_zos_core.zos_operator:
        cmd:
          - "D GRS,RES=(SYSDSN,''CICSUSER.LP01CIC1.EXMPCAT'')" 
      ignore_errors: true
      register: eqResult

With the following error :

fatal: [zceeZosLpar]: FAILED! => {"changed": false, "msg": "An unexpected error occurred: [ZOAUResponse]\n\trc: 1\n\treponse_format: UTF-8\n\tstdout_response: \n\tstderr_response: \n\tcommand: opercmd -T 100 -w -- \"[\"D GRS,RES=(SYSDSN,'CICSUSER.LP01CIC1.EXMPCAT'')\"] \""}

But executing it as a string works ok

    - name: Check VSAM allocation
      ibm.ibm_zos_core.zos_operator:
        cmd: "D GRS,RES=(SYSDSN,CICSUSER.LP01CIC1.EXMPCAT)"
      ignore_errors: true
      register: eqResult

Can check more in thread : /archives/CSLEJ8VGV/p1732740813664929

all the examples on the doc page show cmd on line with - after commands:
https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/modules/zos_tso_command.html#examples

IBM z/OS Ansible core Version

v1.11.0

IBM Z Open Automation Utilities

v1.3.1

IBM Enterprise Python

v3.11.x

ansible-version

v2.14.x

z/OS version

v2.5

Ansible module

No response

Playbook verbosity output.

No response

Ansible configuration.

No response

Contents of the inventory

No response

Contents of group_vars or host_vars

No response

@fernandofloresg fernandofloresg added Bug Something isn't working as designed. Needs Triage Issue need assessment by a team member(s) labels Nov 28, 2024
@richp405 richp405 added Backlog and removed Needs Triage Issue need assessment by a team member(s) labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Bug Something isn't working as designed.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants