diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-03 19:58:52 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-03 19:58:52 +0000 |
commit | 35e65deca0b5b008590b4583eba355dea282f819 (patch) | |
tree | c025f914454d7528d6660060d97ef3e5a2222e9d | |
parent | c3b7d62cc5271d3cd263e7e2b5728fac0c3fe0f2 (diff) | |
download | puppet-35e65deca0b5b008590b4583eba355dea282f819.tar.gz puppet-35e65deca0b5b008590b4583eba355dea282f819.tar.xz puppet-35e65deca0b5b008590b4583eba355dea282f819.zip |
Fixing authstore to use an array for ordering, rather than a hash, duh.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1059 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | lib/puppet/server/authstore.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/puppet/server/authstore.rb b/lib/puppet/server/authstore.rb index a0a3c13ec..70f518f7c 100755 --- a/lib/puppet/server/authstore.rb +++ b/lib/puppet/server/authstore.rb @@ -9,10 +9,11 @@ class Server class AuthorizationError < Puppet::Error; end class AuthStore - ORDER = { - :ip => [:ip], - :name => [:hostname, :domain] - } + # This has to be an array, not a hash, else it loses its ordering. + ORDER = [ + [:ip, [:ip]], + [:name, [:hostname, :domain]] + ] Puppet::Util.logmethods(self, false) @@ -49,6 +50,7 @@ class Server value = name.split(".").reverse end + array.each { |type| [[@deny, false], [@allow, true]].each { |ary| hash, retval = ary |