{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8675","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8675/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8675/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8675/events","html_url":"https://github.com/ManageIQ/manageiq/pull/8675","id":154629225,"number":8675,"title":"Fixing VM target refresh loses host's storages","user":{"login":"jameswnl","id":2421248,"avatar_url":"https://avatars.githubusercontent.com/u/2421248?v=3","gravatar_id":"","url":"https://api.github.com/users/jameswnl","html_url":"https://github.com/jameswnl","followers_url":"https://api.github.com/users/jameswnl/followers","following_url":"https://api.github.com/users/jameswnl/following{/other_user}","gists_url":"https://api.github.com/users/jameswnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jameswnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameswnl/subscriptions","organizations_url":"https://api.github.com/users/jameswnl/orgs","repos_url":"https://api.github.com/users/jameswnl/repos","events_url":"https://api.github.com/users/jameswnl/events{/privacy}","received_events_url":"https://api.github.com/users/jameswnl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/vmware","name":"providers/vmware","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"blomquisg","id":14183,"avatar_url":"https://avatars.githubusercontent.com/u/14183?v=3","gravatar_id":"","url":"https://api.github.com/users/blomquisg","html_url":"https://github.com/blomquisg","followers_url":"https://api.github.com/users/blomquisg/followers","following_url":"https://api.github.com/users/blomquisg/following{/other_user}","gists_url":"https://api.github.com/users/blomquisg/gists{/gist_id}","starred_url":"https://api.github.com/users/blomquisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blomquisg/subscriptions","organizations_url":"https://api.github.com/users/blomquisg/orgs","repos_url":"https://api.github.com/users/blomquisg/repos","events_url":"https://api.github.com/users/blomquisg/events{/privacy}","received_events_url":"https://api.github.com/users/blomquisg/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-05-13T03:56:59Z","updated_at":"2016-05-13T19:39:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/8675","html_url":"https://github.com/ManageIQ/manageiq/pull/8675","diff_url":"https://github.com/ManageIQ/manageiq/pull/8675.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/8675.patch"},"body":"This is for https://bugzilla.redhat.com/show_bug.cgi?id=1335462\r\n"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/219140175","html_url":"https://github.com/ManageIQ/manageiq/pull/8675#issuecomment-219140175","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8675","id":219140175,"user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T19:39:20Z","updated_at":"2016-05-13T19:39:20Z","body":"@jameswnl Can you explain why?  It's not clear why `storage_inv_by_vm_inv` was chosen before and now `storage_inv_by_host_inv(host_inv_by_host(target.host))` fixes this?  I assume the vm version is filtering too many things(including host storages) but the commit message doesn't make it clear why this change fixes it."}}