Commit 717920a0 authored by Guido Trotter's avatar Guido Trotter
Browse files

Unhardcode constants from instance batch create


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 246f4067
......@@ -357,7 +357,7 @@ def BatchCreate(opts, args):
utils.ForceDictType(hvparams, constants.HVS_PARAMETER_TYPES)
tmp_nics = []
for field in ('ip', 'mac', 'mode', 'link', 'bridge'):
for field in constants.INIC_PARAMS:
if field in specs:
if not tmp_nics:
tmp_nics.append({})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment