Skip to content

Commit 9f76ba2

Browse files
author
Brian Flores
committed
fix observations
1 parent 09b93e6 commit 9f76ba2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

SoftLayer/CLI/virt/host_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212

1313
@click.command(cls=SLCommand, short_help="List virtual servers.")
14-
@click.option('--name', '-n', help='Filter by name of the dedicated host')
1514
@click.option('--datacenter', '-d', help='Filter by datacenter of the dedicated host')
16-
@click.option('--owner', help='Filter by owner of the dedicated host')
15+
@click.option('--name', '-n', help='Filter by name of the dedicated host')
1716
@click.option('--order', help='Filter by ID of the order which purchased this dedicated host', type=click.INT)
17+
@click.option('--owner', help='Filter by owner of the dedicated host')
1818
@environment.pass_env
1919
def cli(env, name, datacenter, owner, order,):
2020
"""List dedicated hosts."""

SoftLayer/managers/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def getBandwidthDetail(self, identifier):
367367
bareMetalInstances[outboundBandwidthUsage,bandwidthAllotmentDetail[allocation]]"""
368368
return self.client['SoftLayer_Network_Bandwidth_Version1_Allotment'].getObject(id=identifier, mask=_mask)
369369

370-
def get_dedicated_hosts(self, object_mask, object_filter):
370+
def get_dedicated_hosts(self, object_mask="", object_filter=""):
371371
"""Returns all associated virtual dedicated host objects.
372372
373373
:return SoftLayer_Virtual_DedicatedHost[].

tests/managers/account_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,5 @@ def test_get_bandwidth_pool_counts(self):
178178
self.assertEqual(total, 2)
179179

180180
def test_get_dedicated_hosts(self):
181-
self.manager.get_dedicated_hosts("", "")
181+
self.manager.get_dedicated_hosts()
182182
self.assert_called_with('SoftLayer_Account', 'getDedicatedHosts')

0 commit comments

Comments
 (0)