Commit ac2f0fb4 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Fix var reference from 'instance' instead of 'lu.instance'



... given that 'lu.instance' does not exist in all LUs.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent a971cfee
......@@ -1036,7 +1036,7 @@ def IsInstanceRunning(lu, instance, check_user_shutdown=False):
if check_user_shutdown:
# One more check to be made - whether the instance was shutdown by the user
full_hvparams = lu.cfg.GetClusterInfo().FillHV(lu.instance)
full_hvparams = lu.cfg.GetClusterInfo().FillHV(instance)
inst_info = lu.rpc.call_instance_info(pnode_uuid, instance.name,
instance.hypervisor, full_hvparams)
inst_info.Raise("Can't retrieve instance information for instance %s" %
......
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