Skip to content

Commit

Permalink
Merge "Handle missing network_size in nova-manage"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 11, 2012
2 parents 4ff3115 + 7483115 commit ca2d9a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nova/network/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,11 +1371,12 @@ def create_networks(self, context,
"vlan_start", "vpn_start")
for key in int_args:
try:
kwargs[key] = int(kwargs[key])
value = kwargs.get(key)
if value is None:
continue
kwargs[key] = int(value)
except ValueError:
raise ValueError(_("%s must be an integer") % key)
except KeyError:
pass

# check for certain required inputs
label = kwargs["label"]
Expand Down

0 comments on commit ca2d9a9

Please sign in to comment.