On 24/12/14 00:50, Felix Frank wrote:
On 12/23/2014 10:36 AM, Johan De Wit wrote:
The resource is indeed in both catalogs, only the old one contains 2
automatic attributes (file: and line:).  I suspect this is the cause.
Hi Johan,

good call - I believe those are hints that the compiler adds, so that
the agent can give more helpful error output in case a resource fails
its validation checks.

Are you in a position to filter those from the "old" style catalogs
prior to diffing?

sed -i '/"line":|"file":/d' <catalog>

comes to mind :-)

HTH,
Felix

Hi Felix,

That is a good idea as quick fix.  And why did I not think to that !! :)
Long term, such attributes should get excluded from the diff.

Time to delve into the ruby world :)

Grts

Johan


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer              (805008667232363)
Puppet Certified Professional 2013/2014 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72              Fax       +32 (0)2/255 70 71
3071 KORTENBERG             Mobile    +32 (0)474/42 40 73
BELGIUM                     http://www.open-future.be
_________________________________________________________
Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/549A5EFB.3070906%40open-future.be.
For more options, visit https://groups.google.com/d/optout.

Reply via email to