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

Incorrect Error Handling in appliance_networking_interfaces_ipv4 for Non-Existent Interface #566

Open
1 task done
prabinovRedhat opened this issue Dec 9, 2024 · 0 comments

Comments

@prabinovRedhat
Copy link
Collaborator

prabinovRedhat commented Dec 9, 2024

Summary

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" }

Issue Type

Feature Idea

Component Name

appliance_networking_interfaces_ipv4

Additional Information

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant