Skip to content

Commit 6dd7041

Browse files
#828 code cleanup
1 parent b6933eb commit 6dd7041

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

SoftLayer/managers/hardware.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -729,25 +729,6 @@ def get_hard_drives(self, instance_id):
729729
return self.hardware.getHardDrives(id=instance_id)
730730

731731

732-
# def _get_extra_price_id(items, key_name, hourly, location):
733-
# """Returns a price id attached to item with the given key_name."""
734-
735-
# for item in items:
736-
# if utils.lookup(item, 'keyName') != key_name:
737-
# continue
738-
739-
# for price in item['prices']:
740-
# if not _matches_billing(price, hourly):
741-
# continue
742-
743-
# if not _matches_location(price, location):
744-
# continue
745-
746-
# return price['id']
747-
748-
# raise SoftLayerError("Could not find valid price for extra option, '%s'" % key_name)
749-
750-
751732
def _get_bandwidth_key(items, hourly=True, no_public=False, location=None):
752733
"""Picks a valid Bandwidth Item, returns the KeyName"""
753734

docs/cli/hardware.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Interacting with Hardware
2727

2828
Provides some basic functionality to order a server. `slcli order` has a more full featured method of ordering servers. This command only supports the FAST_PROVISION type.
2929

30+
As of v5.9.0 please use the `--network` option for specifying port speed, as that allows a bit more granularity for choosing your networking type.
31+
3032
.. click:: SoftLayer.CLI.hardware.credentials:cli
3133
:prog: hardware credentials
3234
:show-nested:

0 commit comments

Comments
 (0)