Skip to content

Conversation

@FernandoOjeda
Copy link
Contributor

Add authorize block, file and portable storage to a vs #1440.

"""
disk_id = portable_id
result = self.client.call('SoftLayer_Virtual_Guest', 'attachDiskImage',
disk_id, id=vs_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

result = self.client.call('SoftLayer_Virtual_Guest', 'attachDiskImage', portable_id, id=vs_id)
is not better this?

Copy link
Member

Choose a reason for hiding this comment

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

I likely would have written self.client.call('SoftLayer_Virtual_Guest', 'attachDiskImage', portable_id, id=vs_id) as I think it looks better, taking up less lines.

But there are plenty of cases in the code that would break the call up like this due to line length, so this pattern of breaking up the call into 2 lines after the method is fine too.

Its not something I feel strongly enough about to make you change though.

@allmightyspiff allmightyspiff linked an issue Mar 26, 2021 that may be closed by this pull request
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, thanks

@allmightyspiff allmightyspiff merged commit 26a7e66 into softlayer:master Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authorize block and file storage to a virtual server

3 participants