Commit 08896026 authored by Iustin Pop's avatar Iustin Pop
Browse files

LUCreateInstance: the node list as return value

Currently LUCreateInstance has no result; this patch changes it so that
both the normal result and the dry-run result is the node list of the
selected instance.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
parent 64c65a2a
......@@ -4863,6 +4863,8 @@ class LUCreateInstance(LogicalUnit):
self.dry_run_result = list(nodenames)
def Exec(self, feedback_fn):
"""Create and add the instance to the cluster.
......@@ -4992,6 +4994,8 @@ class LUCreateInstance(LogicalUnit):
result = self.rpc.call_instance_start(pnode_name, iobj, None, None)
result.Raise("Could not start instance")
return list(iobj.all_nodes)
class LUConnectConsole(NoHooksLU):
"""Connect to an instance's console.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment