Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def hg_connection_command
when "windows"
cmd = ""
else
cmd = "--ssh 'ssh -i #{new_resource.key} -o StrictHostKeyChecking=no'"
key_param = new_resource.key.nil? ? "" : "-i #{new_resource.key}"
cmd = "--ssh 'ssh #{key_param} -o StrictHostKeyChecking=no'"
end
return cmd
end