I recently helped a colleague through some confusion about how multiple guards worked. Greatly simplifying the code, the recipe looked like:
The chef code treats these as OR while they thought it was AND. We remedied the situation be changing it to:
While this case was straight forward, there is another case where chef-rewind is being used to add an additional clause. This will be more challenging. So... Is OR the correct behavior? Or should it be AND? Or do people not use multiple guards? Could https://docs.chef.io/chef/resources.html#guards be clarified? Thanks. Joe |
Archive powered by MHonArc 2.6.16.