Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect check against undef in default template #15

Closed
bpesics opened this issue Aug 6, 2013 · 1 comment
Closed

incorrect check against undef in default template #15

bpesics opened this issue Aug 6, 2013 · 1 comment

Comments

@bpesics
Copy link

bpesics commented Aug 6, 2013

see http://docs.puppetlabs.com/guides/templating.html#testing-for-undefined-variables

< <% if has_variable?("state") -%>

---
> <% if @state -%>
23c23
< <% if has_variable?("locality") -%>

---
> <% if @locality -%>
27c27
< <% if has_variable?("unit") -%>

---
> <% if @unit -%>
31c31
< <% if has_variable?("email") -%>

---
> <% if @email -%>
@ghost
Copy link

ghost commented Nov 8, 2013

Fixed by #21.

@mcanevet mcanevet closed this as completed Mar 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants