Hi,

The Puppet Language Style Guide states 
at https://docs.puppetlabs.com/guides/style_guide.html#quoting that 
"Variables standing by themselves should not be quoted, unless they are a 
resource title". So, it means that you should write:

file { "${foo}":
> ...
> }


instead of:

file { $foo:
> ...
> }


correct?

If so, could you please provide some explanations on why it is recommended 
to quote variables standing by themselves in resource titles and only there?

Thank you

Regards,

David RACODON
Freelance QA Consultant
LinkedIn <https://ch.linkedin.com/pub/david-racodon/11/62/283> | Twitter 
<https://twitter.com/davidracodon>

-- 
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/c4f51d65-1fb4-4973-a47f-60de2adf24a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to