You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This recipe works through array (node['users']) so that if the users data bag had users:
[{'id'=>'one'},{'id'=>'two'},{'id'=>'three'}]
and I only wanted user "two" on one particular node, I could set node['users'] = ['two'] which would exclude users "one" and "three". Otherwise all nodes always get all users in the data bag.
However after looking at the code, that could have been made clearer. Worse yet that users variable didn't get used anywhere. Does the above commit help clarify this? Thank you!
The data_bag recipe incorrectly reads from the
node['users']
attribute, but the data bag contents are in theusers
arrayThe text was updated successfully, but these errors were encountered: