User :create do not update already existing user

Reading the chef documentation at i see written in the “:create” action description that “If a user already exists (but does not match), update that user to match”.

So I expect that if I have an already existing user “johndoe” with the “/bin/bash” shell and I :create an user named “johndoe” with the “/bin/false” shell chef will update that user changing the shell to “/bin/false” but this does not happen.

Is there something wrong in my expectation?

Thank You



I am so sorry
I understood what was wrong
That’s my fault

I relaized what happened.

I put a condition like
if !node[‘etc’][‘passwd’][users[‘username’]]
which look for the user in /etc/passwd and in this case skips the user :create action

Sorry again guys