-
Notifications
You must be signed in to change notification settings - Fork 194
virtual detail: show dedicated host info, if applicable #888
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
virtual detail: show dedicated host info, if applicable #888
Conversation
This is only applicable for VSIs that were created to be in a dedicated host. Provide id and name of the dedicated host where VSI is running.
49543f4
to
ad94609
Compare
Add test for verifying host_id attribute
6d01962
to
7a3af08
Compare
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.
looks good, just add a logging message on Softlayer API exceptions.
Thanks.
dedicated_host = env.client.call('Virtual_DedicatedHost', 'getObject', | ||
id=dedicated_host_id) | ||
except SoftLayer.SoftLayerAPIError: | ||
dedicated_host = {} |
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.
At least log an error when the API throws an exception.
From code review request. Thanks Christopher!
looks good, I'll merge this in the morning. |
This is only applicable for VSIs that were created to be in a
dedicated host.
Provide id and name of the dedicated host where VSI is running.