Replace GetOobProgram by GetNdParams
authorRené Nussbaumer <rn@google.com>
Thu, 9 Dec 2010 13:07:37 +0000 (14:07 +0100)
committerRené Nussbaumer <rn@google.com>
Thu, 9 Dec 2010 15:03:36 +0000 (16:03 +0100)
This was due to a older review which used GetOobProgram but then
changed to GetNdParams. Forgot to adjust this in the LU before.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py

index ed866be..f5c3fcb 100644 (file)
@@ -3243,7 +3243,7 @@ class LUOutOfBand(NoHooksLU):
     if node is None:
       raise errors.OpPrereqError("Node %s not found" % self.op.node_name)
 
-    self.oob_program = self.cfg.GetOobProgram(node)
+    self.oob_program = self.cfg.GetNdParams(node)[constants.ND_OOB_PROGRAM]
 
     if not self.oob_program:
       raise errors.OpPrereqError("OOB is not supported for node %s" %