diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-02 09:20:31 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-02 09:26:30 -0700 |
commit | df8f04c5ec2ffb4a16ca27202bb1e9def21ef948 (patch) | |
tree | a116a6cc7b7292fcc3567d6198f5b593e4dfe697 /lib/chef/node.rb | |
parent | 9aebc51a4e836bc7f993dca16dd5f926570ec86e (diff) | |
download | chef-df8f04c5ec2ffb4a16ca27202bb1e9def21ef948.tar.gz |
[CHEF-2936] remove couchdb-in-constructor workaround
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 7 |
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 |