From ba4b62cf52feaf00eb6e8287c681e08e05377897 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 14 Jan 2008 15:10:18 +0000
Subject: [PATCH] Fix some misspellings

This patch fixes two name typos and a style issue (which makes pylint
complain).

Reviewed-by: ultrotter
---
 lib/cmdlib.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 4c20ce0fa..8b1aa6334 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -3072,9 +3072,9 @@ class LUCreateInstance(LogicalUnit):
     pnode_name = self.pnode.name
 
     if self.op.mac == "auto":
-      mac_address=self.cfg.GenerateMAC()
+      mac_address = self.cfg.GenerateMAC()
     else:
-      mac_address=self.op.mac
+      mac_address = self.op.mac
 
     nic = objects.NIC(bridge=self.op.bridge, mac=mac_address)
     if self.inst_ip is not None:
@@ -4160,7 +4160,7 @@ class LUSetInstanceParms(LogicalUnit):
 
       if self.kernel_path != constants.VALUE_DEFAULT:
         if not os.path.isabs(self.kernel_path):
-          raise errors.OpPrereError("The kernel path must be an absolute"
+          raise errors.OpPrereqError("The kernel path must be an absolute"
                                     " filename")
     else:
       self.do_kernel_path = False
@@ -4170,7 +4170,7 @@ class LUSetInstanceParms(LogicalUnit):
       if self.initrd_path not in (constants.VALUE_NONE,
                                   constants.VALUE_DEFAULT):
         if not os.path.isabs(self.kernel_path):
-          raise errors.OpPrereError("The initrd path must be an absolute"
+          raise errors.OpPrereqError("The initrd path must be an absolute"
                                     " filename")
     else:
       self.do_initrd_path = False
-- 
GitLab