bug #1064: close connection after action finishes (VMM)

This commit is contained in:
Javi Fontan committed 2012-01-19 17:00:51 +01:00
1 parent 6e0601ea95
commit 7bace8a793
2 files changed
+7

No files matched your search

+4
View File
@@ -193,6 +193,10 @@ class SshStreamCommand < RemotesCommand
return self
end
def close
@stream.close
end
end
+3
View File
@@ -94,6 +94,9 @@ class VmmAction
def run(steps, info_on_success = nil)
result = execute_steps(steps)
@ssh_src.close if @ssh_src
@ssh_dst.close if @ssh_dst
#Prepare the info for the OpenNebula core
if DriverExecHelper.failed?(result)
info = @data[:failed_info]