mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
feature #863: make end of stderr tag more readable
This commit is contained in:
parent
93fbaab0c9
commit
1a15293903
@ -17,6 +17,7 @@
|
|||||||
require 'CommandManager'
|
require 'CommandManager'
|
||||||
require 'open3'
|
require 'open3'
|
||||||
|
|
||||||
|
|
||||||
class SshStream
|
class SshStream
|
||||||
attr_reader :stream_out, :stream_err, :stdin
|
attr_reader :stream_out, :stream_err, :stdin
|
||||||
attr_reader :out, :err
|
attr_reader :out, :err
|
||||||
@ -28,7 +29,7 @@ class SshStream
|
|||||||
RC_STR = "ExitCode: "
|
RC_STR = "ExitCode: "
|
||||||
SSH_RC_STR = "ExitSSHCode: "
|
SSH_RC_STR = "ExitSSHCode: "
|
||||||
|
|
||||||
EOF_CMD = "echo \"#{RC_STR}$?#{EOF_ERR}\" 1>&2; echo \"#{EOF_OUT}\""
|
EOF_CMD = "echo \"#{RC_STR}$? #{EOF_ERR}\" 1>&2; echo \"#{EOF_OUT}\""
|
||||||
SSH_CMD = "ssh"
|
SSH_CMD = "ssh"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user