Skip to content

Commit 4418057

Browse files
author
Fernando Ojeda
committed
Fixed vlan subnet issue.
1 parent 22f892c commit 4418057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SoftLayer/managers/vs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def _generate_create_dict(
367367
if datacenter:
368368
data["datacenter"] = {"name": datacenter}
369369

370-
if private_vlan and public_vlan:
370+
if private_vlan or public_vlan:
371371
network_components = self._create_network_components(public_vlan, private_vlan,
372372
private_subnet, public_subnet)
373373
data.update(network_components)

tests/managers/vs_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_generate_private_vlan(self):
373373
'localDiskFlag': True,
374374
'operatingSystemReferenceCode': "STRING",
375375
'hourlyBillingFlag': True,
376-
'primaryBackendNetworkComponent': {"networkVlan": {"id": 1}},
376+
'primaryBackendNetworkComponent': {'networkVlan': {'id': 1}},
377377
'supplementalCreateObjectOptions': {'bootMode': None},
378378
}
379379

0 commit comments

Comments
 (0)