puppet wants to send in keys with comment lines

This commit is contained in:
Sitaram Chamarty 2011-11-08 11:23:25 +05:30
parent b4f96e0a47
commit 5858ecb56e
2 changed files with 2 additions and 1 deletions

View file

@ -1077,6 +1077,7 @@ sub setup_authkeys
local $/ = undef;
local @ARGV = ($pubkey);
$pubkey_content = <>;
$pubkey_content =~ s/^\s*#.*\n//gm;
}
$pubkey_content =~ s/\s*$/\n/;
# don't trust files with multiple lines (i.e., something after a newline)