summaryrefslogtreecommitdiff
path: root/lib/chef/node_map.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-05-29 15:56:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-05-29 16:20:17 -0700
commitdeea4f3b00a6bd18beba85c05ddec93a143cdb8b (patch)
tree80514eafa5ed418ed047117b058a0ced7548c792 /lib/chef/node_map.rb
parentb6488236ef24b9c44295deac78b7bd2498e372ba (diff)
downloadchef-deea4f3b00a6bd18beba85c05ddec93a143cdb8b.tar.gz
Target mode for systemd service helper
Makes it so that local cookbook can bounce a remote service over train/ssh/whatever. Works at least for ubuntu. Introduces a fairly rudimentary TrainHelpers class, using some inspiration from ohbye. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node_map.rb')
-rw-r--r--lib/chef/node_map.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/node_map.rb b/lib/chef/node_map.rb
index 01f9d215cb..f54b3dc6bb 100644
--- a/lib/chef/node_map.rb
+++ b/lib/chef/node_map.rb
@@ -287,8 +287,6 @@ class Chef
# "provides" lines with identical filters sort by class name (ascending).
#
def compare_matchers(key, new_matcher, matcher)
- cmp = compare_matcher_properties(new_matcher[:target_mode], matcher[:target_mode])
- return cmp if cmp != 0
cmp = compare_matcher_properties(new_matcher[:block], matcher[:block])
return cmp if cmp != 0
cmp = compare_matcher_properties(new_matcher[:platform_version], matcher[:platform_version])