IBM / ansible-power-aix

Developer contributions for Ansible Automation on Power
https://ibm.github.io/ansible-power-aix/
GNU General Public License v3.0
80 stars 93 forks source link

MPIO module does not deal with erroneous cases #539

Closed schamola closed 1 week ago

schamola commented 1 week ago

Describe the bug MPIO module does not properly deal with errors while running the command and provides wrong output. The module does not use fail_json anywhere in the code.

To Reproduce Steps to reproduce the behavior: Run the following task:

    - name: Gather specific absent device  mpio info
      ibm.power_aix.mpio:
        device: ansibleNegativeTest

Expected behavior The task above should fail because the provided device does not exist, but that is not happening. Rather, some information gets printed.

schamola commented 1 week ago

Issue resolved with #540