summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-29 05:42:45 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-29 05:42:45 +0000
commit0f231b8668701f3a3259a7be8b2cccc21a5c5a34 (patch)
tree32ad7425d0c87498ecbde848505f990dd85be4b2 /lib
parent9381d5f2524caaf8bab61fdbf304e97d77a08dbe (diff)
downloadpuppet-0f231b8668701f3a3259a7be8b2cccc21a5c5a34.tar.gz
puppet-0f231b8668701f3a3259a7be8b2cccc21a5c5a34.tar.xz
puppet-0f231b8668701f3a3259a7be8b2cccc21a5c5a34.zip
Skipping blank lines and comments in autosign.conf
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1512 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/server/ca.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/server/ca.rb b/lib/puppet/server/ca.rb
index 74f2c3390..10fafc940 100644
--- a/lib/puppet/server/ca.rb
+++ b/lib/puppet/server/ca.rb
@@ -47,6 +47,8 @@ class Server
auth = Puppet::Server::AuthStore.new
File.open(autosign) { |f|
f.each { |line|
+ next if line =~ /^\s*#/
+ next if line =~ /^\s*$/
auth.allow(line.chomp)
}
}