Commit dc922da0 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix instance import net option

This is identical to dc30b0e4

 but applied to gnt-backup. Thanks to user
ocaner for catching it.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent c5159571
......@@ -102,7 +102,7 @@ def ImportInstance(opts, args):
except ValueError, err:
raise errors.OpPrereqError("Invalid NIC index passed: %s" % str(err))
nics = [{}] * nic_max
for nidx, ndict in opts.nics.items():
for nidx, ndict in opts.nics:
nidx = int(nidx)
nics[nidx] = ndict
elif opts.no_nics:
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