Skip to content

chef_user fails if first or last name has too many spaces #239

@kenmacleod

Description

@kenmacleod

There are no quotes around the first_name and last_name in this line:

command "chef-server-ctl user-create #{new_resource.username} #{new_resource.first_name} #{new_resource.last_name} #{new_resource.email} #{password} -f #{key}"

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions