summaryrefslogtreecommitdiff
path: root/lib/chef/node.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-11-02 09:20:31 -0700
committerdanielsdeleo <dan@opscode.com>2012-11-02 09:26:30 -0700
commitdf8f04c5ec2ffb4a16ca27202bb1e9def21ef948 (patch)
treea116a6cc7b7292fcc3567d6198f5b593e4dfe697 /lib/chef/node.rb
parent9aebc51a4e836bc7f993dca16dd5f926570ec86e (diff)
downloadchef-df8f04c5ec2ffb4a16ca27202bb1e9def21ef948.tar.gz
[CHEF-2936] remove couchdb-in-constructor workaround
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r--lib/chef/node.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb
index 7f0a7bda1e..c9b3d20d99 100644
--- a/lib/chef/node.rb
+++ b/lib/chef/node.rb
@@ -317,12 +317,7 @@ class Chef
# passed in, which came from roles.
def apply_expansion_attributes(expansion)
loaded_environment = if chef_environment == "_default"
- # have to pass a truthy object to the constructor
- # of Environment so it doesn't create a couchdb
- # object (which breaks a bunch of tests).
- # This is pretty ugly but the couchdb stuff is
- # going away soon, so the expedient choice works for now.
- Chef::Environment.new(:nocouch).tap {|e| e.name("_default")}
+ Chef::Environment.new.tap {|e| e.name("_default")}
else
Chef::Environment.load(chef_environment)
end