summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-13 22:01:26 +0000
committerThom May <thom@chef.io>2016-01-13 22:01:26 +0000
commit4ca02faaa67eb1eebfb0fc4e64855d5e80037691 (patch)
treef8e5c7b4fda1ecc9d4ec6e89dddd8efbfc46e157 /lib/chef
parentc67f2e90acb0a8059f9d5e629d363d18528914e4 (diff)
downloadchef-4ca02faaa67eb1eebfb0fc4e64855d5e80037691.tar.gz
inflate an environment after loading it
this was missed in the great REST fire.
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb
index 5612978a08..e2dc267ff7 100644
--- a/lib/chef/environment.rb
+++ b/lib/chef/environment.rb
@@ -246,7 +246,7 @@ class Chef
if Chef::Config[:solo]
load_from_file(name)
else
- chef_server_rest.get("environments/#{name}")
+ self.from_hash(chef_server_rest.get("environments/#{name}"))
end
end