IBM / ansible-power-aix

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

MPIO module does not deal with erroneous cases #539

Closed schamola closed 5 months ago

schamola commented 5 months 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 5 months ago

Issue resolved with #540