Re: [Puppet Users] PSON.load fails when string contains e.g. "\n"

2018-01-18 Thread Peter Faller
Thanks Josh - adding 'require 'puppet'' does solve it! (Still a bit mysterious as to why it makes a difference; but this is something I only need temporarily, so that's OK) On Thursday, 11 January 2018 21:33:21 UTC+2, Josh Cooper wrote: > > > -- You received this message because you are subscri

Re: [Puppet Users] PSON.load fails when string contains e.g. "\n"

2018-01-11 Thread Josh Cooper
On Sun, Jan 7, 2018 at 11:33 PM, Peter Faller wrote: > I'm trying to preprocess some version 3.x catalogs to eliminate some false > positives reported by 'puppet catalog diff'. I copied some code from the > catalog diff source, and have ended up with (extraneous details omitted): > > #! /usr/bin/

[Puppet Users] PSON.load fails when string contains e.g. "\n"

2018-01-07 Thread Peter Faller
I'm trying to preprocess some version 3.x catalogs to eliminate some false positives reported by 'puppet catalog diff'. I copied some code from the catalog diff source, and have ended up with (extraneous details omitted): #! /usr/bin/env ruby require 'puppet/external/pson/pure' require 'fileutil