diff options
author | John Duarte <john.duarte@puppetlabs.com> | 2014-05-27 17:18:37 -0700 |
---|---|---|
committer | John Duarte <john.duarte@puppetlabs.com> | 2014-05-27 17:18:37 -0700 |
commit | 22397d9b36938f6537bc83293e5bee0aff403756 (patch) | |
tree | 5c65e3c3ab1f97caf998c658658166e36b351685 /Rakefile | |
parent | b3b253f2432e5cda15c04b11b89bb3d47e84dc76 (diff) |
Fix logic to validate keyfile
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ end def check_args_for_keyfile(extra_args) keyfile = '' extra_args.each do |a| - keyfile = a if (`file -b #{a}`.gsub(/\n/,"").match(/ key/)) + keyfile = a unless (`ssh-keygen -l -f #{a}`.gsub(/\n/,"").match(/is not a .*key file/)) end return keyfile end |