Skip to content

Conversation

flavio-fernandes
Copy link

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 85.374% when pulling 49543f4 on flavio-fernandes:dedicated_host_details.merge into fc8d42c on softlayer:master.

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.
@flavio-fernandes flavio-fernandes force-pushed the dedicated_host_details.merge branch from 49543f4 to ad94609 Compare October 22, 2017 13:53
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 85.377% when pulling ad94609 on flavio-fernandes:dedicated_host_details.merge into fc8d42c on softlayer:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.448% when pulling 6d01962 on flavio-fernandes:dedicated_host_details.merge into fc8d42c on softlayer:master.

Add test for verifying host_id attribute
@flavio-fernandes flavio-fernandes force-pushed the dedicated_host_details.merge branch from 6d01962 to 7a3af08 Compare October 23, 2017 01:40
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.448% when pulling 7a3af08 on flavio-fernandes:dedicated_host_details.merge into fc8d42c on softlayer:master.

Copy link
Member

@allmightyspiff allmightyspiff left a 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 = {}
Copy link
Member

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!
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 85.603% when pulling 11b478f on flavio-fernandes:dedicated_host_details.merge into fc8d42c on softlayer:master.

@allmightyspiff
Copy link
Member

looks good, I'll merge this in the morning.

@allmightyspiff allmightyspiff merged commit de19801 into softlayer:master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants