diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-22 15:01:49 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-23 12:24:37 -0700 |
commit | 752ca373ec3f8cd71ae5401a468eacea47d2d4d8 (patch) | |
tree | 8d136454148e794127c851521d49dad1fa05a9d5 /lib | |
parent | efa9807bbcb592fcaf2ad559e1d7982f9cac147f (diff) | |
download | chef-752ca373ec3f8cd71ae5401a468eacea47d2d4d8.tar.gz |
Remove a Chef 13-ism
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/swap_file.rb | 6 |
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 |