Skip to content

Commit 6885a47

Browse files
author
Fernando
committed
Fix tox analysis.
1 parent 791c18d commit 6885a47

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

SoftLayer/managers/hardware.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,11 +1005,9 @@ def _get_disk_price_detail(self, disk_data, upgrade_prices, disk_channel, disk_t
10051005
"""
10061006
if disk_data.get('description') == disk_type:
10071007
if "add" in disk_type:
1008-
disk_type_description = "Unable to add the disk because this already exists."
1008+
raise SoftLayerError("Unable to add the disk because this already exists.")
10091009
else:
1010-
disk_type_description = "Unable to resize the disk because this does not exists."
1011-
1012-
raise SoftLayerError(disk_type_description)
1010+
raise SoftLayerError("Unable to resize the disk because this does not exists.")
10131011
else:
10141012
price_id = self._get_prices_for_upgrade_option(upgrade_prices, disk_channel,
10151013
disk_data.get('capacity'))

0 commit comments

Comments
 (0)