aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-12-04 22:57:47 +0100
committermh <mh@immerda.ch>2013-12-04 22:57:47 +0100
commite2c0b37c7ec9aa730c3a219707b9bc00529dbd91 (patch)
tree8a6c720d5bde59826059e83584e49c1ed3e6e1a0 /lib/puppet
parent6578e0c9188fd41a9c9e066dbd984b79bb8961a3 (diff)
downloadpuppet-sshd-e2c0b37c7ec9aa730c3a219707b9bc00529dbd91.tar.gz
puppet-sshd-e2c0b37c7ec9aa730c3a219707b9bc00529dbd91.tar.bz2
no need to have these quotes
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/functions/ssh_keygen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/ssh_keygen.rb b/lib/puppet/parser/functions/ssh_keygen.rb
index d411a28..b732b87 100644
--- a/lib/puppet/parser/functions/ssh_keygen.rb
+++ b/lib/puppet/parser/functions/ssh_keygen.rb
@@ -21,7 +21,7 @@ Puppet::Parser::Functions::newfunction(:ssh_keygen, :type => :rvalue, :doc =>
unless [private_key_path,public_key_path].all?{|path| File.exists?(path) }
output = Puppet::Util::Execution.execute(
['/usr/bin/ssh-keygen','-t', 'rsa', '-b', '4096',
- '-f', private_key_path, '-P', '\'\'', '-q'])
+ '-f', private_key_path, '-P', '', '-q'])
raise Puppet::ParseError, "Something went wrong during key generation! Output: #{output}" unless output.empty?
end
[File.read(private_key_path),File.read(public_key_path)]