Skip to content

Commit

Permalink
Fix exception in machine_run
Browse files Browse the repository at this point in the history
'where' was unavaliable in rescue

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 authored and YanVugenfirer committed Sep 18, 2023
1 parent 47370d4 commit 3924ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rtoolsHCK.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ def machine_connection(machine)
end

def machine_run(machine, cmd)
where = "#{machine}/winrm/run"
machine_connection(machine).shell(:powershell) do |ps_shell|
run_output = ps_shell.run(cmd)
where = "#{machine}/winrm/run"

check_run_output(run_output, where, cmd)
run_output.stdout
Expand Down

0 comments on commit 3924ff1

Please sign in to comment.