summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Murawski <steven.murawski@gmail.com>2017-04-04 12:44:18 -0500
committerGitHub <noreply@github.com>2017-04-04 12:44:18 -0500
commit93c72873224c6a79ae13b5d2fa70cb9bfc645c5c (patch)
tree11d69b7bf3287fdc2ea8bda6fe1b7bd99a7c3ef1
parent9eb7aa84a1b2cbea628f405bf65e70953c1fd422 (diff)
parentab76b3527cf4f657203fc80481f865ef5ec990d3 (diff)
downloadchef-93c72873224c6a79ae13b5d2fa70cb9bfc645c5c.tar.gz
Merge pull request #5720 from Ppjet6/master
Add -u param to usermod in linux_user resource when using non_unique
-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"