We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81a5c8d + 4228bd5 commit fef3eb4Copy full SHA for fef3eb4
libraries/ssh_crypto.rb
@@ -256,7 +256,7 @@ def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity
256
257
# returns the hostkeys value based on valid_algorithms
258
def valid_hostkeys
259
- hostkeys = valid_algorithms.map { |alg| "/etc/ssh/ssh_host_#{alg}_key" }
+ hostkeys = valid_algorithms.map { |alg| "#{sshd_custom_path}/ssh_host_#{alg}_key" }
260
# its('HostKey') provides a string for a single-element value.
261
# we have to return a string if we have a single-element
262
# https://github.com/chef/inspec/issues/1434
0 commit comments