Issue #2943 has been updated by Markus Roberts.
Minor quibble. That test was already broken, the change just exposes the fact.
The test claims to be for:
Puppet when executing the 'apply' command should convert plain data
structures into a catalog
but what it's actually testing is:
exactly one call to Puppet::Resource::Catalog.pson_create(:foo => 'bar')
exactly one call to PSON.parse('something')
exactly one call to File.read(any_parameters)
So it really should be renamed to:
Puppet when executing the 'apply' command should call a specific list of
library methods
Less flippant fix forthcoming.
----------------------------------------
Bug #2943: puppet --apply only suppots PSON
http://projects.reductivelabs.com/issues/2943
Author: Dan Bode
Status: Re-opened
Priority: Normal
Assigned to: Markus Roberts
Category: serialization
Target version: 0.25.2
Affected version: 0.25.1
Keywords:
Branch: http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/2943
PSON is the hardcoded catalog format for --apply
file: puppet/application/puppet.rb
<pre>
42 command(:apply) do
43 require 'puppet/configurer'
44
45 if options[:catalog] == "-"
46 text = $stdin.read
47 else
48 text = File.read(options[:catalog])
49 end
50
51 begin
52 catalog = PSON.parse(text)
53 unless catalog.is_a?(Puppet::Resource::Catalog)
54 catalog = Puppet::Resource::Catalog.pson_create(ca
talog)
55 end
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.