projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
13c2458
)
Fix "gnt-instance modify --initrd"
author
Iustin Pop
<iustin@google.com>
Mon, 28 Jan 2008 09:02:02 +0000
(09:02 +0000)
committer
Iustin Pop
<iustin@google.com>
Mon, 28 Jan 2008 09:02:02 +0000
(09:02 +0000)
The new QA tests for instance modify uncovered a bug in the modify
initrd operation when setting the initrd to none.
Reviewed-by: imsnah
lib/cmdlib.py
patch
|
blob
|
history
diff --git
a/lib/cmdlib.py
b/lib/cmdlib.py
index
ca5162e
..
7ae062e
100644
(file)
--- a/
lib/cmdlib.py
+++ b/
lib/cmdlib.py
@@
-4170,7
+4170,7
@@
class LUSetInstanceParms(LogicalUnit):
self.do_initrd_path = True
if self.initrd_path not in (constants.VALUE_NONE,
constants.VALUE_DEFAULT):
- if not os.path.isabs(self.kernel_path):
+ if not os.path.isabs(self.initrd_path):
raise errors.OpPrereqError("The initrd path must be an absolute"
" filename")
else: