-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Enable use of empty manageiq arguments #31774
Conversation
@cben @zgalor @joelddiaz please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
shipit |
1 similar comment
shipit |
shipit |
lib/ansible/module_utils/manageiq.py
Outdated
@@ -46,6 +46,12 @@ def manageiq_argument_spec(): | |||
ca_bundle_path=dict(required=False, default=None), | |||
) | |||
|
|||
return dict( | |||
manageiq_connection=dict(type='dict', | |||
default=dict(verify_ssl=False), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default verify_ssl
should be True
shipit just made the default @cben @zgalor @joelddiaz please re-shipit 🙏 |
you can take your code and shipit |
shipit |
works as advertised in my environment 👍 |
bot_status |
waiting_on: ansible |
shipit |
SUMMARY
Currently we can not omit the managiq arguments:
Bug: If example.yaml does not have the
manageiq_connection
argument, we will get"missing required arguments: manageiq_connection"
error:Example
Without this fix we can not use the system variables:
will give:
With this bug fix, the above line will work.
This change is adding:
All the modules, including docs, tests and usage examples can be found here
Currently, the only requirement for the modules is manageiq-api-client-python
ISSUE TYPE
COMPONENT NAME
manageiq.py (module_utils)
ANSIBLE VERSION
ansible 2.5.0.0