projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b40559
)
Fix the --net option to gnt-instance add
author
Iustin Pop
<iustin@google.com>
Thu, 12 Mar 2009 11:54:22 +0000
(11:54 +0000)
committer
Iustin Pop
<iustin@google.com>
Thu, 12 Mar 2009 11:54:22 +0000
(11:54 +0000)
Similar to the --disk fixes a while ago, --net is broken too. This patch
fixes it.
Reviewed-by: imsnah
scripts/gnt-instance
patch
|
blob
|
history
diff --git
a/scripts/gnt-instance
b/scripts/gnt-instance
index
ad7f237
..
9dde02f
100755
(executable)
--- a/
scripts/gnt-instance
+++ b/
scripts/gnt-instance
@@
-321,7
+321,7
@@
def AddInstance(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: