Changed error to TypeError so that we get the arguments list.
This commit is contained in:
parent
665e155339
commit
3754a7b6f4
@ -522,8 +522,8 @@ class NetworkCommands(object):
|
||||
[network_size=FLAG], [vlan_start=FLAG],
|
||||
[vpn_start=FLAG], [fixed_range_v6=FLAG]"""
|
||||
if not fixed_range:
|
||||
raise ValueError(_('Fixed range in the form of 10.0.0.0/8 is '
|
||||
'required to create networks.'))
|
||||
raise TypeError(_('Fixed range in the form of 10.0.0.0/8 is '
|
||||
'required to create networks.'))
|
||||
if not num_networks:
|
||||
num_networks = FLAGS.num_networks
|
||||
if not network_size:
|
||||
|
Loading…
x
Reference in New Issue
Block a user