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

VMware: correct documentation for datacenter #38718

Merged
merged 1 commit into from
Apr 13, 2018
Merged

Conversation

Akasurde
Copy link
Member

SUMMARY

This fixes documentation related to datacenter in vmware_guest_find
module.

Fixes: #38290

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
COMPONENT NAME

lib/ansible/modules/cloud/vmware/vmware_guest_find.py

ANSIBLE VERSION
2.6devel

@ansibot
Copy link
Contributor

ansibot commented Apr 13, 2018

@ansibot ansibot added bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. owner_pr This PR is made by the module's maintainer. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community labels Apr 13, 2018
@Akasurde Akasurde removed the needs_triage Needs a first human triage before being processed. label Apr 13, 2018
@Akasurde Akasurde requested a review from gundalow April 13, 2018 07:28
- 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.
Copy link
Contributor

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'],),?

Copy link
Member Author

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
Copy link
Contributor

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

Copy link
Member Author

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)
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. owner_pr This PR is made by the module's maintainer. labels Apr 13, 2018
This fixes documentation related to datacenter in vmware_guest_find
module.

Fixes: ansible#38290

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Copy link
Contributor

@gundalow gundalow left a 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

@Akasurde Akasurde merged commit 2367130 into ansible:devel Apr 13, 2018
@Akasurde Akasurde deleted the i38290 branch April 13, 2018 13:04
@Akasurde
Copy link
Member Author

@gundalow Thanks for review. I will cherry-pick for stable-2.5

ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
This fixes documentation related to datacenter in vmware_guest_find
module.

Fixes: ansible#38290

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vmware_guest_find has required, deprecated parameter
3 participants