mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
bug #1064: close connection after action finishes (VMM)
(cherry picked from commit 7bace8a793
)
This commit is contained in:
parent
e38ebccd72
commit
3e078c1725
@ -193,6 +193,10 @@ class SshStreamCommand < RemotesCommand
|
|||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def close
|
||||||
|
@stream.close
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,6 +94,9 @@ class VmmAction
|
|||||||
def run(steps, info_on_success = nil)
|
def run(steps, info_on_success = nil)
|
||||||
result = execute_steps(steps)
|
result = execute_steps(steps)
|
||||||
|
|
||||||
|
@ssh_src.close if @ssh_src
|
||||||
|
@ssh_dst.close if @ssh_dst
|
||||||
|
|
||||||
#Prepare the info for the OpenNebula core
|
#Prepare the info for the OpenNebula core
|
||||||
if DriverExecHelper.failed?(result)
|
if DriverExecHelper.failed?(result)
|
||||||
info = @data[:failed_info]
|
info = @data[:failed_info]
|
||||||
|
Loading…
Reference in New Issue
Block a user