lib/sonic/settings.rb in sonic-screwdriver-1.3.0 vs lib/sonic/settings.rb in sonic-screwdriver-1.3.2
- old
+ new
@@ -94,12 +94,13 @@
data["bastion"]["default"] = nil
end
data
end
+ # By default bypass strict host key checking for convenience.
+ # But user can overrride this.
def host_key_check_options
- if data["host_key_check"]
- # no options by default enables strict host key checking
+ if data["host_key_check"] == true
[]
else
# disables host key checking
%w[-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null]
end