>
> Hi,
>
> Your comparison of $::zend_gui_completed is never boolean true, so the
> notify always happens. Perhaps your fact is returning a string and not a
> boolean. Put this in your code just above the conditional statement.
>
> $zgc_type = inline_template('<%= @zend_gui_completed.class %>')
> notify { "zend_gui_completed is type ${zgc_type}": }
>
> If it is a string, check out str2bool() from stdlib[1].
>
> [1] - https://github.com/puppetlabs/puppetlabs-stdlib#str2bool
>
> First thanks for your complete and super quick reply.
I understand why it doesn't work now. I'll try that tomorrow. And would
you have any hints for me regarding my 2nd question? How can I skip the
execution of a section (class?) if this variable is not true?
Thanks,
--
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/3cfc6c98-269a-43ff-9325-ce6ea3d7fb9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.