summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-22 15:01:49 -0700
committerTim Smith <tsmith@chef.io>2018-03-23 12:24:37 -0700
commit752ca373ec3f8cd71ae5401a468eacea47d2d4d8 (patch)
tree8d136454148e794127c851521d49dad1fa05a9d5
parentefa9807bbcb592fcaf2ad559e1d7982f9cac147f (diff)
downloadchef-752ca373ec3f8cd71ae5401a468eacea47d2d4d8.tar.gz
Remove a Chef 13-ism
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/swap_file.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/chef/resource/swap_file.rb b/lib/chef/resource/swap_file.rb
index 813ad33113..fdf13212f8 100644
--- a/lib/chef/resource/swap_file.rb
+++ b/lib/chef/resource/swap_file.rb
@@ -187,12 +187,6 @@ class Chef
compatible_filesystems.any? { |fs| result.include? fs }
end
- # we can remove this when we only support Chef 13
- def docker?(node = run_context.nil? ? nil : run_context.node)
- !!(node && node["virtualization"] && node["virtualization"]["systems"] &&
- node["virtualization"]["systems"]["docker"] && node["virtualization"]["systems"]["docker"] == "guest")
- end
-
def persist?
!!new_resource.persist
end