summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-05-22 17:18:18 -0700
committerdanielsdeleo <dan@getchef.com>2015-05-23 14:26:26 -0700
commit1c434b302e7a8f67e5d6044b1ce5692eabdcc6bb (patch)
tree2cbd54256d1e139251e003bc07a928a4287888e0
parent6541f2c84ba6f0cd277be7bb28b035f3a9d2ba80 (diff)
downloadchef-1c434b302e7a8f67e5d6044b1ce5692eabdcc6bb.tar.gz
Fix ruby warning for unused local variable
-rw-r--r--lib/chef/provider/service/freebsd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/freebsd.rb b/lib/chef/provider/service/freebsd.rb
index 9204e3ef92..6c78f86fe0 100644
--- a/lib/chef/provider/service/freebsd.rb
+++ b/lib/chef/provider/service/freebsd.rb
@@ -147,7 +147,7 @@ class Chef
# some scripts support multiple instances through symlinks such as openvpn.
# We should get the service name from rcvar.
Chef::Log.debug("name=\"service\" not found at #{init_command}. falling back to rcvar")
- sn = shell_out!("#{init_command} rcvar").stdout[/(\w+_enable)=/, 1]
+ shell_out!("#{init_command} rcvar").stdout[/(\w+_enable)=/, 1]
else
# for why-run mode when the rcd_script is not there yet
new_resource.service_name