summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user/linux.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/user/linux.rb')
-rw-r--r--lib/chef/provider/user/linux.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/user/linux.rb b/lib/chef/provider/user/linux.rb
index cf75bdc38b..715330e196 100644
--- a/lib/chef/provider/user/linux.rb
+++ b/lib/chef/provider/user/linux.rb
@@ -58,6 +58,7 @@ class Chef
def usermod_options
opts = []
+ opts += [ "-u", new_resource.uid ] if non_unique?
if updating_home?
if new_resource.manage_home
opts << "-m"