diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/puppet/server/pelement.rb | 17 | ||||
-rwxr-xr-x | lib/puppet/type/pfile/checksum.rb | 3 |
2 files changed, 17 insertions, 3 deletions
diff --git a/lib/puppet/server/pelement.rb b/lib/puppet/server/pelement.rb index 660954942..7c4ee7fb3 100755 --- a/lib/puppet/server/pelement.rb +++ b/lib/puppet/server/pelement.rb @@ -76,7 +76,22 @@ class Server::PElementServer end end - def list(type, name, client = nil, clientip = nil) + def list(type, ignore = [], base = nil, client = nil, clientip = nil) + @local = true unless client + typeklass = nil + unless typeklass = Puppet.type(type) + raise Puppet::Error, "Puppet type %s is unsupported" % type + end + + bucket = TransBucket.new + bucket.type = typeklass.name + + typeklass.list.each do |obj| + object = TransObject.new(obj.name, typeklass.name) + bucket << object + end + + bucket end private diff --git a/lib/puppet/type/pfile/checksum.rb b/lib/puppet/type/pfile/checksum.rb index 54ab3d860..c00fd7f7f 100755 --- a/lib/puppet/type/pfile/checksum.rb +++ b/lib/puppet/type/pfile/checksum.rb @@ -288,8 +288,7 @@ module Puppet #@parent.debug "@is: %s; @should: %s" % [@is,@should] result = true else - @parent.debug "Creating checksum %s of type %s" % - [@is,@checktypes[0]] + @parent.debug "Creating checksum %s" % @is result = false end state[@checktypes[0]] = @is |