Skip to content

Commit b66b563

Browse files
author
Fernando Ojeda
committed
Fix tox analysis.
1 parent 461cee4 commit b66b563

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SoftLayer/managers/vs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ def _generate_create_dict(
470470
datacenter=None, os_code=None, image_id=None,
471471
dedicated=False, public_vlan=None, private_vlan=None,
472472
private_subnet=None, public_subnet=None,
473-
public_router=None, private_router=None,
474473
userdata=None, nic_speed=None, disks=None, post_uri=None,
475474
private=False, ssh_keys=None, public_security_groups=None,
476475
private_security_groups=None, boot_mode=None, transient=False, **kwargs):
@@ -534,13 +533,14 @@ def _generate_create_dict(
534533
if datacenter:
535534
data["datacenter"] = {"name": datacenter}
536535

537-
if private_router or public_router:
536+
if kwargs.get('private_router') or kwargs.get('public_router'):
538537
if private_vlan or public_vlan or private_subnet or public_subnet:
539538
raise exceptions.SoftLayerError("You have to select network vlan or network vlan with a subnet or "
540539
"only router, not all options")
541540
network_components = self._create_network_components(public_vlan, private_vlan,
542541
private_subnet, public_subnet,
543-
private_router, public_router)
542+
kwargs.get('private_router'),
543+
kwargs.get('public_router'))
544544
data.update(network_components)
545545

546546
if private_vlan or public_vlan or private_subnet or public_subnet:

0 commit comments

Comments
 (0)