Issue #2943 has been updated by James Turnbull.
Status changed from Closed to Re-opened
Assigned to changed from Dan Bode to Markus Roberts
This commit broke the following test:
<pre>
4)
Mocha::ExpectationError in 'Puppet when executing the 'apply' command should
convert plain data structures into a catalog if deserialization does not do so'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked:
Puppet::Resource::Catalog.pson_create(:foo => 'bar')
satisfied expectations:
- allowed any number of times, not yet invoked:
Puppet::Util::Log.level=(any_parameters)
- allowed any number of times, already invoked twice:
Puppet::Util::Log.newdestination(any_parameters)
- expected exactly once, already invoked once: PSON.parse('something')
- allowed any number of times, not yet invoked: PSON.parse(any_parameters)
- expected exactly once, already invoked once: File.read(any_parameters)
./spec/unit/application/puppet.rb:381:
/home/james/src/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
`run'
/home/james/src/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
`each'
/home/james/src/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
`run'
</pre>
----------------------------------------
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.