1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Fixed a bug in kvm drivers

git-svn-id: http://svn.opennebula.org/one/trunk@317 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2009-01-22 17:03:25 +00:00
parent 20264ef975
commit 5a243cb298

View File

@ -173,9 +173,11 @@ class DM < ONEMad
end
def exec_kvm_command(host, command)
Open3.popen3(
res=Open3.popen3(
"ssh -n #{host} virsh #{command} ;"+
" echo ExitCode: $? 1>&2")
res[0].close
res
end
def write_response(action, stdout, stderr, args)