Skip to content

Commit

Permalink
Bump version to 2.1.1.rc8 and enhance SSH debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
vitobotta committed Jan 26, 2025
1 parent 91013ea commit 2173cc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/hetzner-k3s.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require "./cluster/upgrade"

module Hetzner::K3s
class CLI < Admiral::Command
VERSION = "2.1.1.rc7"
VERSION = "2.1.1.rc8"

class Create < Admiral::Command
define_help description: "create - Create a cluster"
Expand Down
9 changes: 5 additions & 4 deletions src/util/ssh.cr
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class Util::SSH
end
end

if ENV.fetch("DEBUG", "false") == "true"
puts "SSH command result: ===#{result}==="
puts "SSH command expected: ===#{expected_result}==="
end

break result if result == expected_result
end

Expand Down Expand Up @@ -63,10 +68,6 @@ class Util::SSH

File.delete(cmd_file_path)

if ENV.fetch("DEBUG", "false") == "true"
puts "SSH command result: #{result.output.chomp}"
end

result.output.chomp
end

Expand Down

0 comments on commit 2173cc7

Please sign in to comment.