chef-ingredient icon indicating copy to clipboard operation
chef-ingredient copied to clipboard

chef_user fails if first or last name has too many spaces

Open kenmacleod opened this issue 5 years ago • 1 comments

There are no quotes around the first_name and last_name in this line: https://github.com/chef-cookbooks/chef-ingredient/blob/8d06f5e88847d8dc17c002e5ebf893bb5bd36a19/resources/chef_user.rb#L50

If first or last name happens to have two names, user-create will pick up the extra argument as a middle name (ooh, neat hidden feature! :) :( ).

But if there are more than one extra "name", like first name "My Admin User", last name "Vault_Item_Admin", user-create fails with a too many arguments error.

kenmacleod avatar Apr 25 '19 16:04 kenmacleod

Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

welcomebot avatar Apr 25 '19 16:04 welcomebot