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

aoscx_command returns OK even though it failed #70

Open
KBerstene opened this issue Apr 11, 2023 · 1 comment
Open

aoscx_command returns OK even though it failed #70

KBerstene opened this issue Apr 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KBerstene
Copy link

I attempted to run the aoscx_command and the command reported an OK status, but in reality it failed to authenticate (misconfigured password, that part is irrelevant). It should be reporting a failed status instead of an OK status.

I also was attempting to save the configuration using aoscs_config in the same playbook and that reported the failure correctly.

The command in question:

  tasks:
    - name: Set Hostname
      aoscx_command:
        commands:
          - config
          - "hostname {{ inventory_hostname }}"
ok: [example_host] => changed=false
  invocation:
    module_args:
      commands:
      - config
      - hostname ExampleHost
      interval: 1
      match: all
      output_file: null
      output_file_format: json
      provider: null
      retries: 10
      wait_for: null
  stdout:
  - 'Failed to authenticate: Authentication failed.'
  - 'Failed to authenticate: Authentication failed.'
  stdout_lines: <omitted>
@tchiapuziowong
Copy link
Member

Thank you for bringing this to our attention! I'll bring this up internally and will update the issue as our work progresses.

@tchiapuziowong tchiapuziowong self-assigned this May 22, 2023
@tchiapuziowong tchiapuziowong added the bug Something isn't working label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants