Skip to content

Conversation

allmightyspiff
Copy link
Member

added warning message when ordering legacy storage offerings from the cli, removed restriction on IOPS being multiples of 100 for performance volumes

…rings from the cli, removed restriction on IOPS being multiples of 100 for performance volumes
@allmightyspiff allmightyspiff requested a review from dpickle2 April 23, 2018 21:28
@coveralls
Copy link

coveralls commented Apr 23, 2018

Coverage Status

Coverage remained the same at 87.413% when pulling b153838 on allmightyspiff:issues959 into e9b174c on softlayer:master.

Copy link

@dpickle2 dpickle2 left a comment

Choose a reason for hiding this comment

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

I like these changes overall. :)
I did leave a few comments relating to consistency between the Block and File versions of the order.py files. Also, it looks like the Travis tests are failing at the moment, but if that is being caused by something unrelated, then no worries for this particular PR.

if storage_type == 'performance':
if iops is None:
raise exceptions.CLIAbort(
'Option --iops required with Performance')

Choose a reason for hiding this comment

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

This is a nit-pick detail, but I did notice the similar portion in SoftLayer/CLI/block/order.py (line 84) was modified so that only one line was used for this exception.

)

if service_offering == 'performance' and snapshot_size is not None:
raise exceptions.CLIAbort(

Choose a reason for hiding this comment

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

As with my comment on line 74, I don't think this is a major issue, but I noticed the corresponding exception in SoftLayer/CLI/block/order.py (lines 88 and 89) was updated. If possible, it might be nice to update this one as well for consistency.

help='The service offering package to use for placing '
'the order [optional, default is \'storage_as_a_service\']',
help="""The service offering package to use for placing the order.
[optional, default is \'storage_as_a_service\']. enterprise and performance are depreciated""",

Choose a reason for hiding this comment

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

I think this looks good, but I noticed it is only here in the block volume order command. Would it be possible to add it to SoftLayer/CLI/file/order.py as well?

Copy link

@dpickle2 dpickle2 left a comment

Choose a reason for hiding this comment

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

Cool, thank you!

@allmightyspiff allmightyspiff merged commit 4da502b into softlayer:master Apr 24, 2018
@allmightyspiff allmightyspiff deleted the issues959 branch August 31, 2020 22:27
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.

3 participants