Fix "gnt-instance modify --initrd"
[ganeti-local] / lib / cmdlib.py
index ca5162e..7ae062e 100644 (file)
@@ -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: