summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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