diff options
author | varac <varacanero@zeromail.org> | 2013-09-04 19:12:48 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-09-04 19:12:48 +0200 |
commit | 9250ca56e0235e4b213af932c8952b97630cc076 (patch) | |
tree | cf23afee1993c21f522ecc1591e15ebfc4bf4ee4 | |
parent | 2c5ba99a88417e1f7482b03fd5f8deb890168873 (diff) |
bigcouch nodes doesn't get registered as cluster members (Bug #3703)
-rw-r--r-- | manifests/document.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/document.pp b/manifests/document.pp index be68983..2f6aac6 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}" + unless => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${url} | grep -q -v '{\"error\":'" } } @@ -37,7 +37,7 @@ define couchdb::document( cmd => 'DELETE', host => $host, path => "${db}/${id}", - onlyif => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${url}" + unless => "/usr/bin/curl -s --netrc-file /etc/couchdb/couchdb.netrc ${url} | grep -q '{\"error\":'" } } } |