Re: [Puppet Users] Testing 2 variables within a template

2010-01-11 Thread Trevor Vaughan
Not much but... <% if has_variable?("foo") and has_variable?("bar") then -%> Both foo and bar are defined. <% end -%> Trevor On Mon, Jan 11, 2010 at 9:02 AM, windowsrefund wrote: > I can't help but think there's a cleaner way to do this: > > <% if has_variable?("foo") then %> > <% if has_variab

[Puppet Users] Testing 2 variables within a template

2010-01-11 Thread windowsrefund
I can't help but think there's a cleaner way to do this: <% if has_variable?("foo") then %> <% if has_variable?("bar") then %> Both foo and bar are defined. <% end %> <% end %> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this grou