-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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_host: Small fixes and docs updates #25144
Conversation
This PR includes: - A fix to no longer require a datacenter folder for adding a host - Documentation improvements - Ensure imports are specific
1ceba43
to
5f1af13
Compare
e36ab70
to
114877d
Compare
114877d
to
2362f47
Compare
e2ee031
to
a48e643
Compare
c95f522
to
b8b5d31
Compare
@@ -131,7 +140,10 @@ def process_state(self): | |||
|
|||
def find_host_by_cluster_datacenter(self): | |||
self.dc = find_datacenter_by_name(self.content, self.datacenter_name) |
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.
if self.dc is None:
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.
Nope, that's the whole point of my PR, self.dc can be None !
state: | ||
description: | ||
- Add or remove the host. | ||
choices: [absent, present] |
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.
Indent is required here and below line.
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.
Yeah, I know, is a man allowed to sleep around here ? :-D
Fix adds following: * Update logic in vmware_host * Update example documentation * Added test case for vmware_host Signed-off-by: Abhijeet Kasurde <[email protected]>
b8b5d31
to
61ce9e7
Compare
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.
LGTM
shipit |
SUMMARY
This PR includes:
This fixes #26326 (actually it includes @Akasurde 's changes too, see log below)
Fix adds following:
Signed-off-by: Abhijeet Kasurde [email protected]
ISSUE TYPE
COMPONENT NAME
vmware_host
ANSIBLE VERSION
v2.4