waiting ssh command in log
This commit is contained in:
parent
3e4c316523
commit
065e93d409
@ -114,7 +114,9 @@ module Devops
|
|||||||
@out << "\nWaiting for SSH..."
|
@out << "\nWaiting for SSH..."
|
||||||
@out.flush
|
@out.flush
|
||||||
i = 0
|
i = 0
|
||||||
cmd = "ssh -i #{cert_path} -q #{@server.remote_user}@#{ip} 'exit' 2>&1"
|
cmd = "ssh -i #{cert_path} -q #{@server.remote_user}@#{ip} 'exit'"
|
||||||
|
out << "Test command: '#{cmd}'\n"
|
||||||
|
cmd << " 2>&1"
|
||||||
begin
|
begin
|
||||||
sleep(5)
|
sleep(5)
|
||||||
res = `#{cmd}`
|
res = `#{cmd}`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user