diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/create_db.pp | 2 | ||||
-rw-r--r-- | manifests/document.pp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp index 9335e4b..edc6f0d 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::document { "${name}_security": diff --git a/manifests/document.pp b/manifests/document.pp index 2f6aac6..1153296 100644 --- a/manifests/document.pp +++ b/manifests/document.pp @@ -28,7 +28,7 @@ define couchdb::document( cmd => 'PUT', host => $host, path => "${db}/${id}", - unless => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${url} | grep -q -v '{\"error\":'" + unless => "/usr/bin/curl -s -f --netrc-file /etc/couchdb/couchdb.netrc ${url}" } } @@ -37,7 +37,7 @@ define couchdb::document( cmd => 'DELETE', host => $host, path => "${db}/${id}", - unless => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${url} | grep -q '{\"error\":'" + unless => "/usr/bin/curl -s -f --netrc-file /etc/couchdb/couchdb.netrc ${url}" } } } |