diff options
author | danielsdeleo <dan@opscode.com> | 2013-06-19 16:20:17 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-06-20 13:22:16 -0700 |
commit | 3460b42487266c0239ad85b667f35d5eb2d31d91 (patch) | |
tree | 5b47f4571bd7c2e7afecea5d006c054ceb003162 /lib/chef/provider/user | |
parent | 79973df05c8e512741ebb37cbd80ef911ea0b228 (diff) | |
download | chef-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.rb | 2 |
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' |