Skip to content

Commit 19d98a6

Browse files
caberoscaberos
authored andcommitted
slcli server create-options dal13 Error
1 parent 544fcb9 commit 19d98a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SoftLayer/managers/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def get_account_all_billing_orders(self, limit=100, mask=None):
277277
return self.client.call('Billing_Order', 'getAllObjects',
278278
limit=limit, mask=mask)
279279

280-
def get_routers(self, mask=None, location=None):
280+
def get_routers(self, location=None, mask=None):
281281
"""Gets all the routers currently active on the account
282282
283283
:param string mask: Object Mask

tests/managers/account_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,8 @@ def test_get_active_account_licenses(self):
161161
def test_get_active_virtual_licenses(self):
162162
self.manager.get_active_virtual_licenses()
163163
self.assert_called_with("SoftLayer_Account", "getActiveVirtualLicenses")
164+
165+
def test_get_routers_with_datacenter(self):
166+
self.manager.get_routers('dal13')
167+
object_filter = {'routers': {'topLevelLocation': {'name': {'operation': 'dal13'}}}}
168+
self.assert_called_with("SoftLayer_Account", "getRouters", filter=object_filter)

0 commit comments

Comments
 (0)