Is there a method somewhere in puppet to convert 0.25.x catalogs into
something that 2.6.x can interact with?
I had to monkeypatch the resources:
catalog.resources.each do |r|
unless r.title
# this is for 0.25 catalogs, this is ghetto,
# but I think it needs to be...
Puppet.notice('converting 0.25.x resources to work with 2.6.x')
type = r.instance_variable_get(:@reference).type
title = r.instance_variable_get(:@reference).title
r.instance_variable_set(:@type, type)
r.instance_variable_set(:@title, title)
end
end
and it feels dirty...
-Dan
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.