fnichol/chef-user

Individual group must be defined in an array

Closed this issue · 2 comments

When defining a group in the json files it must be defined in an array even if there is only one group. For example:

Defining a group like this works:
"groups": ["sysadmin"],

Defining a group like this does not work:
"groups": "sysadmin",

The following error is observed:
NoMethodError
undefined method `each' for "sysadmin":String

Given the attribute is "groups", that seems pretty reasonable to me.

@anicholson on second thought I agree it is reasonable too.