summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service
diff options
context:
space:
mode:
authorJoshua Miller <joshuamiller01@gmail.com>2016-08-26 09:54:38 -0700
committerPhil Dibowitz <phil@ipom.com>2016-08-26 09:54:38 -0700
commit3f33d7a105801c31ae7a38334e582068ea94af2b (patch)
tree1711b52a9189401bcebb0de4d19235c245d0d41d /lib/chef/provider/service
parentbf7c0f9a698616da9c68adf6c0ca81f27456dc9d (diff)
downloadchef-3f33d7a105801c31ae7a38334e582068ea94af2b.tar.gz
Use symbols instead of strings as keys for systemd user property (#5241)
* Use symbols instead of strings as keys for systemd user property related funcs * Fix tests for provider/service/systemd for when user property is set * Change hash in systemctl_opts to use symbols instead of strings * Fix tests for chef/provider/systemd_unit.rb
Diffstat (limited to 'lib/chef/provider/service')
-rw-r--r--lib/chef/provider/service/systemd.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/service/systemd.rb b/lib/chef/provider/service/systemd.rb
index 1597d46a3d..712f0f60c3 100644
--- a/lib/chef/provider/service/systemd.rb
+++ b/lib/chef/provider/service/systemd.rb
@@ -78,10 +78,10 @@ class Chef::Provider::Service::Systemd < Chef::Provider::Service::Simple
if new_resource.user
uid = node["etc"]["passwd"][new_resource.user]["uid"]
options = {
- "environment" => {
+ :environment => {
"DBUS_SESSION_BUS_ADDRESS" => "unix:path=/run/user/#{uid}/bus",
},
- "user" => new_resource.user,
+ :user => new_resource.user,
}
args = "--user"
else