Skip to content

[skip ci]Select correct datastore for the test#7909

Merged
mhagen-vmware merged 6 commits intomasterfrom
feature/get-correct-datastore
May 8, 2018
Merged

[skip ci]Select correct datastore for the test#7909
mhagen-vmware merged 6 commits intomasterfrom
feature/get-correct-datastore

Conversation

@mhagen-vmware
Copy link
Contributor

fix for the intermittent nightly failure in this test - hasn't been triaged yet, so no ticket for it.

Cleanup old keyword not needed anymore as well

# Get one of the hosts in the cluster we want and make sure we use the correct local datastore
${hosts}= Run govc ls -t HostSystem host/cls
@{hosts}= Split To Lines ${hosts}
${datastore}= Get Name of First Local Storage For Host @{hosts}[0]
Copy link
Contributor

@rajanashok rajanashok May 7, 2018

Choose a reason for hiding this comment

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

Understand it is always a good practice not to hard-code. But Is there a specific reason why we look for the first datastore in the list?
lgtm otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is local storage, so it doesn't matter which one just so long as it is on the host.

Copy link
Contributor

@rogeliosanchez rogeliosanchez left a comment

Choose a reason for hiding this comment

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

lgtm

@mhagen-vmware mhagen-vmware merged commit 86c0c52 into master May 8, 2018
@mhagen-vmware mhagen-vmware deleted the feature/get-correct-datastore branch May 8, 2018 16:06
zjs pushed a commit to zjs/vic that referenced this pull request Jul 19, 2018
zjs pushed a commit to zjs/vic that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants