summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-06-19 16:20:17 -0700
committerdanielsdeleo <dan@opscode.com>2013-06-20 13:22:16 -0700
commit3460b42487266c0239ad85b667f35d5eb2d31d91 (patch)
tree5b47f4571bd7c2e7afecea5d006c054ceb003162 /lib/chef/provider/user
parent79973df05c8e512741ebb37cbd80ef911ea0b228 (diff)
downloadchef-3460b42487266c0239ad85b667f35d5eb2d31d91.tar.gz
[CHEF-4204] fix ruby unused variable warning
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r--lib/chef/provider/user/useradd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb
index 280676df24..55a41d07c1 100644
--- a/lib/chef/provider/user/useradd.rb
+++ b/lib/chef/provider/user/useradd.rb
@@ -66,7 +66,7 @@ class Chef
raise_lock_error = false
# we can get an exit code of 1 even when it's successful on rhel/centos (redhat bug 578534)
if status.exitstatus == 1 && ['redhat', 'centos'].include?(node[:platform])
- passwd_version_status = popen4('rpm -q passwd') do |pid, stdin, stdout, stderr|
+ popen4('rpm -q passwd') do |pid, stdin, stdout, stderr|
passwd_version = stdout.gets.chomp
unless passwd_version == 'passwd-0.73-1'