1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

Better indentation for KVM Driver

git-svn-id: http://svn.opennebula.org/trunk@51 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Constantino Vázquez Blanco 2008-07-10 15:03:18 +00:00
parent 7b48473e39
commit b78bced719

View File

@ -39,7 +39,7 @@ class DM < ONEMad
end
def action_checkpoint(args)
send_message("CHECKPOINT", "FAILURE", args[1], "action not supported for KVM")
send_message("CHECKPOINT", "FAILURE", args[1], "action not supported for KVM")
end
def action_save(args)
@ -65,13 +65,13 @@ class DM < ONEMad
exit_code=get_exit_code(stderr)
if exit_code!=0
tmp=stderr.scan(/^error: failed to get domain '#{args[3]}'/)
if tmp[0]
send_message("POLL", "SUCCESS", args[1], "STATE=d")
else
send_message("POLL", "FAILURE", args[1])
end
return nil
tmp=stderr.scan(/^error: failed to get domain '#{args[3]}'/)
if tmp[0]
send_message("POLL", "SUCCESS", args[1], "STATE=d")
else
send_message("POLL", "FAILURE", args[1])
end
return nil
end
log("STDOUT:"+stdout)
@ -167,15 +167,15 @@ class DM < ONEMad
state = "a"
when "paused"
state = "p"
when "crashed"
when "crashed"
state = "e"
end
end
end
}
info += " STATE=" + state
return info
return info
end
end