Fix cluster rename operation
authorIustin Pop <iustin@google.com>
Fri, 29 Feb 2008 12:32:59 +0000 (12:32 +0000)
committerIustin Pop <iustin@google.com>
Fri, 29 Feb 2008 12:32:59 +0000 (12:32 +0000)
This one-liner fixes the cluster rename operation. As a side note, we
should have a QA test for this too.

Reviewed-by: imsnah

lib/cmdlib.py

index 629ae29..10ee633 100644 (file)
@@ -972,7 +972,7 @@ class LURenameCluster(LogicalUnit):
 
     """
     env = {
-      "OP_TARGET": self.op.sstore.GetClusterName(),
+      "OP_TARGET": self.sstore.GetClusterName(),
       "NEW_NAME": self.op.name,
       }
     mn = self.sstore.GetMasterNode()