The yaml specification says that yaml can either be formatted with indentation, AND/OR with curly braces. Does puppet handle the output from an external node script dumping yaml output with curly braces? The python yaml library''s yaml.dump() function seems to mix and match both types. Doug -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Aug 3, 2010 at 12:03 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> The yaml specification says that yaml can either be formatted with > indentation, AND/OR with curly braces. > Does puppet handle the output from an external node script dumping > yaml output with curly braces? > > The python yaml library''s yaml.dump() function seems to mix and match > both types.do you mean the default_flow_style for yaml.dump Douglas? I don''t remember having any problems with either format when dumping from python to be loaded by ruby with either option in the past, but I do have default_flow_style=False for my external node script.> > Doug > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Douglas Garstang
2010-Aug-04 04:11 UTC
Re: [Puppet Users] External Nodes using Curly Braces
That did it. Thanks Nigel. On Tue, Aug 3, 2010 at 12:06 PM, Nigel Kersten <nigelk@google.com> wrote:> On Tue, Aug 3, 2010 at 12:03 PM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> The yaml specification says that yaml can either be formatted with >> indentation, AND/OR with curly braces. >> Does puppet handle the output from an external node script dumping >> yaml output with curly braces? >> >> The python yaml library''s yaml.dump() function seems to mix and match >> both types. > > do you mean the default_flow_style for yaml.dump Douglas? I don''t > remember having any problems with either format when dumping from > python to be loaded by ruby with either option in the past, but I do > have default_flow_style=False for my external node script. > > > >> >> Doug >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> >> > > > > -- > nigel > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garstang@gmail.com Cell: +1-805-340-5627 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.