From 8cafeb265b1db99e024c39f5571914fb3931588f Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 8 Jan 2008 16:16:23 +0000 Subject: [PATCH] Fix gnt-instance modify breakage introduced in r462 Reviewed-by: schreiberal --- lib/cmdlib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 8d5bf9c08..a625dcde4 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4150,6 +4150,8 @@ class LUSetInstanceParms(LogicalUnit): if not os.path.isabs(self.kernel_path): raise errors.OpPrereError("The kernel path must be an absolute" " filename") + else: + self.do_kernel_path = False if self.initrd_path is not None: self.do_initrd_path = True @@ -4158,6 +4160,8 @@ class LUSetInstanceParms(LogicalUnit): if not os.path.isabs(self.kernel_path): raise errors.OpPrereError("The initrd path must be an absolute" " filename") + else: + self.do_initrd_path = False instance = self.cfg.GetInstanceInfo( self.cfg.ExpandInstanceName(self.op.instance_name)) -- GitLab