Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c00b6f5

Browse files
committed
Merge pull request softlayer#712 from sudorandom/issue-711
Issue 711
2 parents 0c2ad48 + ffcb72d commit c00b6f5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

SoftLayer/CLI/vlan/detail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def cli(env, identifier, no_vs, no_hardware):
3939
table.add_row(['firewall',
4040
'Yes' if vlan['firewallInterfaces'] else 'No'])
4141
subnets = []
42-
for subnet in vlan['subnets']:
42+
for subnet in vlan.get('subnets', []):
4343
subnet_table = formatting.KeyValueTable(['name', 'value'])
4444
subnet_table.align['name'] = 'r'
4545
subnet_table.align['value'] = 'l'
@@ -57,7 +57,7 @@ def cli(env, identifier, no_vs, no_hardware):
5757
server_columns = ['hostname', 'domain', 'public_ip', 'private_ip']
5858

5959
if not no_vs:
60-
if vlan['virtualGuests']:
60+
if vlan.get('virtualGuests'):
6161
vs_table = formatting.KeyValueTable(server_columns)
6262
for vsi in vlan['virtualGuests']:
6363
vs_table.add_row([vsi['hostname'],
@@ -69,7 +69,7 @@ def cli(env, identifier, no_vs, no_hardware):
6969
table.add_row(['vs', 'none'])
7070

7171
if not no_hardware:
72-
if vlan['hardware']:
72+
if vlan.get('hardware'):
7373
hw_table = formatting.Table(server_columns)
7474
for hardware in vlan['hardware']:
7575
hw_table.add_row([hardware['hostname'],

fabfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ def release(version, force=False):
3636

3737
clean()
3838

39-
puts(" * Tagging Version %s" % version_str)
40-
force_option = 'f' if force else ''
41-
local("git tag -%sam \"%s\" %s" % (force_option, version_str, version_str))
42-
4339
local("pip install wheel")
4440

4541
puts(" * Uploading to PyPI")
4642
upload()
4743

44+
puts(" * Tagging Version %s" % version_str)
45+
force_option = 'f' if force else ''
46+
local("git tag -%sam \"%s\" %s" % (force_option, version_str, version_str))
47+
4848
puts(" * Pushing Tag to upstream")
4949
local("git push upstream %s" % version_str)

0 commit comments

Comments
 (0)