diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-04-12 11:49:18 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-04-12 11:49:18 -0700 |
commit | 4648d2d0d6a5037239f74d5d68ce1f6285e1a9c5 (patch) | |
tree | 66226fbc6ea2f36861d10130558f4e56b22212cd | |
parent | 9c951bb9c0296f8316ddf913ca7074dfd52f17ab (diff) | |
parent | f65590f6dfcbb681ce98e853dde3b8886866635a (diff) | |
download | chef-4648d2d0d6a5037239f74d5d68ce1f6285e1a9c5.tar.gz |
Merge branch 'master' into pl-master
-rw-r--r-- | chef/lib/chef/couchdb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/couchdb.rb b/chef/lib/chef/couchdb.rb index 3d0b0083c8..71ee196462 100644 --- a/chef/lib/chef/couchdb.rb +++ b/chef/lib/chef/couchdb.rb @@ -71,7 +71,7 @@ class Chef def create_db(check_for_existing=true) @database_list = @rest.get_rest("_all_dbs") - if check_for_existing && !@database_list.any? { |db| db == couchdb_database } + if !check_for_existing || !@database_list.any? { |db| db == couchdb_database } response = @rest.put_rest(couchdb_database, Hash.new) end couchdb_database |