diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-05-06 17:49:13 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-05-06 17:49:13 -0700 |
commit | dc6aea2908cf8274320898337722f702113f3cd5 (patch) | |
tree | f3bc5301435607e1500495f0d767897dc9436f90 | |
parent | 4cd444e53f9ff745dcd349f7255c31f99da02070 (diff) | |
download | chef-dc6aea2908cf8274320898337722f702113f3cd5.tar.gz |
more lexical scoping fixes
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/provider/launchd.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb index 644ced9b3d..579a53fe03 100644 --- a/lib/chef/provider/launchd.rb +++ b/lib/chef/provider/launchd.rb @@ -87,7 +87,6 @@ class Chef end def manage_plist(action) - path = path if source cookbook_file path do cookbook_name = new_resource.cookbook if new_resource.cookbook @@ -106,10 +105,10 @@ class Chef end def manage_service(action) - path = path + plist_path = path macosx_service label do service_name(new_resource.label) if new_resource.label - plist(path) if path + plist(plist_path) if plist_path copy_properties_from(new_resource, :session_type) action(action) only_if { manage_agent?(action) } |