On Monday, October 22, 2012 at 10:36 AM, Torben Knerr wrote:>
> Ah, thanks! CHEF-2936 is exactly what hits me. CHEF-1804 is weird as well,
> I'll try to keep that in the back of my head...
>
> As this behaviour is quite counter-intuitive, would you agree that a
> foodcritic rule would make sense here?Yeah, a foodcritic rule would be nice. I was poking around in foodcritic recently and found that it doesn't detect some types of attribute access[0], so fixing that would be a good starting point.We intend to fix this for Chef 11, with the intention of allowing more logic (especially computed/derived attribute values and platform-specific attribute values) in attributes files so any foodcritic rule ought to branch on Chef version above/below 11.0.
Archive powered by MHonArc 2.6.16.