summaryrefslogtreecommitdiff
path: root/lib/chef/knife/environment_delete.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/environment_delete.rb')
-rw-r--r--lib/chef/knife/environment_delete.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/environment_delete.rb b/lib/chef/knife/environment_delete.rb
index ec1b7cb8d8..65e5a1eb5c 100644
--- a/lib/chef/knife/environment_delete.rb
+++ b/lib/chef/knife/environment_delete.rb
@@ -23,7 +23,7 @@ class Chef
class EnvironmentDelete < Knife
deps do
- require_relative "../environment"
+ require "chef/environment" unless defined?(Chef::Environment)
end
banner "knife environment delete ENVIRONMENT (options)"