-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Refreshing devices list after adding a disk or cdrom controller #7167
Conversation
e789060
to
6f8510b
Compare
@chrislovecnm @stack72 @phinze |
controller, err = devices.FindDiskController(controller_type) | ||
if err != nil { | ||
return fmt.Errorf("[ERROR] Could not find the controller we just created") | ||
return fmt.Errorf("[ERROR] Could not find the new %v controller: %v", controller_type, err) |
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.
please log err
, or check that it is logged in stack above.
@dkalleg is this an edge case or should have we caught this in testing? |
d72565d
to
11dc327
Compare
Also taking out an unnecessary ForceNew on controller_type as well as correcting a reference to controller_type in Update case.
11dc327
to
9965ff3
Compare
@dkalleg : Interesting. It's the same way I do it in #7154 for the network interfaces. Little sad that we have to spam api calls (create device function with created device as return value would be great) |
@stack72 @phinze @thetuxkeeper @chrislovecnm @jen20 |
LGTM!! |
Thanks @stack72 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Without refreshing the devices list, we can't find the controller we just created.