From ec1ba0029e52c2f32927d2d84299cbfc844113c0 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sat, 31 May 2008 23:45:51 +0000
Subject: [PATCH] Forward-port: make gnt-modify work with new HVM parameters

This fixes gnt-instance modify so it actually works with the
new HVM parameters for Ganeti 1.2

Author: schreiberal
Reviewed-by: iustinp
---
 lib/cmdlib.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index f06d685a9..5290d2c66 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -4458,10 +4458,13 @@ class LUSetInstanceParams(LogicalUnit):
         instance.hvm_boot_order = self.hvm_boot_order
       result.append(("hvm_boot_order", self.hvm_boot_order))
     if self.hvm_acpi:
+      instance.hvm_acpi = self.hvm_acpi
       result.append(("hvm_acpi", self.hvm_acpi))
     if self.hvm_pae:
+      instance.hvm_pae = self.hvm_pae
       result.append(("hvm_pae", self.hvm_pae))
     if self.hvm_cdrom_image_path:
+      instance.hvm_cdrom_image_path = self.hvm_cdrom_image_path
       result.append(("hvm_cdrom_image_path", self.hvm_cdrom_image_path))
     if self.vnc_bind_address:
       instance.vnc_bind_address = self.vnc_bind_address
-- 
GitLab