On Monday, January 20, 2014 8:52:34 AM UTC-6, [email protected] wrote: > > Hi, > as far as I understand, spacing should usually not be an issue in > manifests between the attribute name and the "arrow", right? > >
Right. > For example, for a "host" type resource: > > ip => "192.168.1.1" > > …should be the same as: > > ip => "192.168.1.1" > > Is that right? > That is right. > It's useful to make manifests easily readable, and I see it used in > examples, too. > > But I encountered a problem with the "ip" attribute of the "host" > resource: if I add more spaces after "ip", just like the example above, I > get an error telling me that the "ip" attribute is required, as if it was > absent. > Without extra spaces, instead, it works. > > Is this a bug which needs to be reported? > > If it were indeed the case that adding space characters (U+0020), tab characters (U+0009), newlines (U+000A), and / or line feeds (U+000D) between the parameter name and the arrow broke a resource declaration, then that would be a bug that should be reported. I find that highly unlikely, however. Possible alternative explanations: - You are quoting the parameter name (which is fine), and at least some of the added whitespace is going inside the quotes. "ip " => "192.168.1.1" - You are inserting at least one character different from those enumerated above between the parameter name and comma. There are several that are normally rendered as a span of empty space, and there are many others that normally are not rendered at all. None of those is considered whitespace for the DSL's purposes, but depending on where exactly they appear, they might be syntactically valid. Perhaps you changed the "ip" parameter to "ip<some non-printing character>" John -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e12305f4-5689-4648-a845-746e5e03c6df%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
