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

AV-75971 Added support to select ESXi host #11

Merged
merged 2 commits into from
Jan 17, 2020
Merged

AV-75971 Added support to select ESXi host #11

merged 2 commits into from
Jan 17, 2020

Conversation

yograjshisode
Copy link
Contributor

No description provided.

@@ -105,18 +105,33 @@ def get_first_cluster(si, dc):
return first_cluster


def get_ds(dc, name):
def get_ds(dc, name, type='datacenter'):
Copy link
Contributor

Choose a reason for hiding this comment

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

type is a bad choice of name. type is a keyword and we should not override it. Also, I don't see how you are using the type? you are passing it down in the function but not using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the name. We are using this variable to show an accurate error in case of failure(datastore not found on datacenter/host).

@grastogi23 grastogi23 merged commit f52ce48 into master Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants