-
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
VMware: correct documentation for datacenter #38718
Conversation
- This is required if uuid is not supplied. | ||
description: | ||
- Name of the VM to work with. | ||
- This is required if C(uuid) parameter is not supplied. |
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.
Do we also want mutually_exclusive=(['name', 'uuid'],),
?
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.
Done.
description: | ||
- Destination datacenter for the find operation. | ||
- Deprecated in 2.5, will be removed in 2.9 release. | ||
required: 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.
You can removed required: false
lines as that's the default
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.
Done.
@@ -112,7 +111,7 @@ def main(): | |||
argument_spec.update( | |||
name=dict(type='str'), | |||
uuid=dict(type='str'), | |||
datacenter=dict(removed_in_version=2.9, type='str', required=True) | |||
datacenter=dict(removed_in_version=2.9, type='str', required=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.
You can remove , required=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.
Done.
This fixes documentation related to datacenter in vmware_guest_find module. Fixes: ansible#38290 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
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.
Looks good. Should be cherry-picked into stable-2.5
@gundalow Thanks for review. I will cherry-pick for stable-2.5 |
This fixes documentation related to datacenter in vmware_guest_find module. Fixes: ansible#38290 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
This fixes documentation related to datacenter in vmware_guest_find
module.
Fixes: #38290
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/cloud/vmware/vmware_guest_find.py
ANSIBLE VERSION