summaryrefslogtreecommitdiff
path: root/lib/chef/knife/environment_create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/environment_create.rb')
-rw-r--r--lib/chef/knife/environment_create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/environment_create.rb b/lib/chef/knife/environment_create.rb
index 9f022bb49a..cfc1bc268c 100644
--- a/lib/chef/knife/environment_create.rb
+++ b/lib/chef/knife/environment_create.rb
@@ -46,7 +46,7 @@ class Chef
env = Chef::Environment.new
env.name(env_name)
env.description(config[:description]) if config[:description]
- create_object(env)
+ create_object(env, object_class: Chef::Environment)
end
end
end