sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 218 forks source link

Converge fails when non-existent user set to lock #421

Closed sjsadowski closed 3 years ago

sjsadowski commented 6 years ago

Cookbook version

5.3.1

Chef-client version

14.1.12

Platform Details

CentOS 7.5

Scenario:

Bootstrapping new nodes with a user being locked

Steps to Reproduce:

Create a databag with the action "lock" for a user that doesn't exist on a new node

Expected Result:

non-existent user ignored (no reason to lock a user that isn't there)

Actual Result:

Converge fails.

Relevant:

Chef::Exceptions::User:linux_user[XXXXX] (/var/chef/cache/cookbooks/users/resource/manage.rb line 65) had an error: Chef::Exceptions::User: Cannot modify user XXXXX - does not exist!

github-actions[bot] commented 3 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

sjsadowski commented 3 years ago

Closing because this cookbook is unmaintained.