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

Parse if a datastore is accessible from a host #356

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Jan 23, 2019

Parse if a datastore is able to be accessed from a host into the
host_storage record.

Depends on:

https://bugzilla.redhat.com/show_bug.cgi?id=1668020

@agrare agrare force-pushed the bz_1668020_parse_datastore_accessible branch from 22930e3 to 976c85c Compare January 24, 2019 14:18
@agrare agrare added the bug label Jan 24, 2019
@agrare agrare force-pushed the bz_1668020_parse_datastore_accessible branch 5 times, most recently from 329ff56 to b36aa0b Compare January 24, 2019 14:51
Copy link
Member

@gmcculloug gmcculloug left a comment

Choose a reason for hiding this comment

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

One minor spec comment but otherwise this looks good.

@@ -469,6 +469,13 @@ def assert_specific_host
:location => "4dce5b88-623e8e7e-0dc0-00188b404015"
)

expect(@host.host_storages.where(:accessible => false).count).to eq(1)
inaccessible_host_storage = @host.host_storages.where(:accessible => false).first
Copy link
Member

Choose a reason for hiding this comment

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

Minor, but you can use find_by(:accessible => false) and drop the .first on this call.

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

Parse if a datastore is able to be accessed from a host into the
host_storage record.

https://bugzilla.redhat.com/show_bug.cgi?id=1668020
@agrare agrare force-pushed the bz_1668020_parse_datastore_accessible branch from b36aa0b to 01f506a Compare January 24, 2019 19:49
@miq-bot
Copy link
Member

miq-bot commented Jan 24, 2019

Checked commit agrare@01f506a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🏆

Copy link
Contributor

@jameswnl jameswnl left a comment

Choose a reason for hiding this comment

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

LGTM

@gmcculloug gmcculloug merged commit 4e2e9b8 into ManageIQ:master Jan 24, 2019
@gmcculloug gmcculloug added this to the Sprint 104 Ending Feb 4, 2019 milestone Jan 24, 2019
@agrare agrare deleted the bz_1668020_parse_datastore_accessible branch January 24, 2019 21:55
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Jan 28, 2019
…e_accessible

Parse if a datastore is accessible from a host

(cherry picked from commit 4e2e9b8)
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Jan 29, 2019
…e_accessible

Parse if a datastore is accessible from a host

(cherry picked from commit 4e2e9b8)
(cherry picked from commit a6b1a65)
@simaishi
Copy link
Contributor

Backported to hammer via #358
Backported to gaprindashvili via #359

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