Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-2037

Incorrect Error Handling in appliance_networking_interfaces_ipv4 for Non-Existent Interface

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description:
      When attempting to set IPv4 configuration for a non-existent interface using the appliance_networking_interfaces_ipv4 module, the module incorrectly returns:

      • "msg": "missing required arguments: mode"
      • "failed": false

      This behavior occurs even when the mode argument is provided. According to the module logic, it should return "failed": true with the message "The interface is unknown."


      Expected Result:
      The module should return:

      { "failed": true, "msg": "The interface is unknown." }

      Actual Result:
      The module returns:

      { "changed": false, "msg": "missing required arguments: mode" }

              rh-ee-mimorenc Mike Morency
              prabinov Polina Rabinovich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: