Commit 2bc22872 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix "gnt-instance modify --initrd"

The new QA tests for instance modify uncovered a bug in the modify
initrd operation when setting the initrd to none.

Reviewed-by: imsnah
parent 40cece88
......@@ -4171,7 +4171,7 @@ class LUSetInstanceParms(LogicalUnit):
self.do_initrd_path = True
if self.initrd_path not in (constants.VALUE_NONE,
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")
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