We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b559609 commit dc52ddbCopy full SHA for dc52ddb
src/util/ssh.cr
@@ -28,13 +28,19 @@ class Util::SSH
28
end
29
30
result ||= ""
31
+ result = result.not_nil!.strip.gsub(/[\r\n]/, "")
32
33
if ENV.fetch("DEBUG", "false") == "true"
34
puts "SSH command result: ===#{result}==="
35
puts "SSH command expected: ===#{expected_result}==="
36
+ puts "Matching?: ===#{ result == expected_result }==="
37
38
- break result if result.not_nil!.strip.gsub(/[\r\n]/, "") == expected_result
39
+ if result == expected_result
40
+ break result
41
+ else
42
+ log_line "Waiting for instance #{instance.name} to be ready...", log_prefix: "Instance #{instance.name}"
43
+ end
44
45
46
result
0 commit comments