[node-devel] fix no key "OVIRT_BOOTPARAMS" problem occured in ovirt-node's install

Bohai (ricky) bohai at huawei.com
Fri Jun 21 06:37:20 UTC 2013


Hi,

I found the "No key" exception occurred in overt-node's install progress.
For the detail, please see the attached picture.

This patch fixs the problem.

I am a newbie for ovirt-node and I apologize if I am missing something very obvious.
Any advice is welcomed.


diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
index 7b95b04..eae26ba 100755
--- a/src/ovirtnode/install.py
+++ b/src/ovirtnode/install.py
@@ -475,7 +475,8 @@ initrd /initrd0.img
         else:
             self.root_param = "root=live:LABEL=Root"
             self.bootparams = "ro rootfstype=auto rootflags=ro "
-        self.bootparams += OVIRT_VARS["OVIRT_BOOTPARAMS"].replace(
+
+        self.bootparams += OVIRT_VARS.get("OVIRT_BOOTPARAMS", "").replace(
                                                             "console=tty0", "")
         if " " in self.disk or os.path.exists("/dev/cciss"):
             # workaround for grub setup failing with spaces in dev.name:

bohai(ricky)
boh.ricky at gmail.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: percent80.png
Type: image/png
Size: 17237 bytes
Desc: percent80.png
URL: <http://lists.ovirt.org/pipermail/node-devel/attachments/20130621/c126a473/attachment.png>


More information about the node-devel mailing list