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 handling of missing 'rules' parameter in appliance_networking_firewall_inbound module in vmware_rest #562

Open
1 task done
prabinovRedhat opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
bug This issue/PR relates to a bug

Comments

@prabinovRedhat
Copy link
Collaborator

Summary

About the appliance_networking_firewall_inbound module in vmware_rest.
I noticed that when the rules parameter is missing, the module returns the message:
"missing required arguments: rules"
But the failed flag is still false.
Here’s what I got:

mandatory_rule_check:
  changed: false
  failed: false
  msg: "missing required arguments: rules"

It feels like the module should set failed=True when a required parameter is missing.

Issue Type

Feature Idea

Component Name

appliance_networking_firewall_inbound

Additional Information

No response

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@mikemorency mikemorency added bug This issue/PR relates to a bug and removed needs_triage labels Dec 4, 2024
@mikemorency
Copy link
Collaborator

The error is coming from the rest api and the module is just passing it to the user. The module is not actually checking the response code and handling errors.

i think we should approach this similar to #385
Short term, document a work around
Long term, move to vmware.vmware

@mikemorency mikemorency self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug
Projects
None yet
Development

No branches or pull requests

2 participants