summaryrefslogtreecommitdiff
path: root/manifests/create_db.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/create_db.pp')
-rw-r--r--manifests/create_db.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp
index 32bc974..9ba921c 100644
--- a/manifests/create_db.pp
+++ b/manifests/create_db.pp
@@ -8,7 +8,7 @@ define couchdb::create_db (
cmd => 'PUT',
host => $host,
path => $name,
- unless => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${host}/${name} | grep -q -v '{\"error\":\"not_found\"'"
+ unless => "/usr/bin/curl -s -f --netrc-file /etc/couchdb/couchdb.netrc ${host}/${name}"
}
couchdb::query { "${name}_security":