D --
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...
>
Yeah, it does.
I'm a little unclear on the context here. The intent of the changes in
#3656 & the ill-fated #5206 (which was the root cause of #5755) was to deal
with this very issue with catalogs coming from a 2.6.4+ master to a 0.25.x
client.
It looks like this is the reverse transformation?
-- M
-----------------------------------------------------------
When in trouble or in doubt, run in circles,
scream and shout. -- 1920's parody of the
maritime general prudential rule
------------------------------------------------------------
--
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.