summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-08-14 17:01:43 +0200
committerAzul <azul@riseup.net>2013-08-14 17:01:43 +0200
commit75f71932df514be2dfc0a9a61b300d8f9bd69369 (patch)
tree1e0b3088c9bb6c8f3a573f2f50953f85b7910c83 /manifests/query.pp
parent371f1790d1dfbc7f9b32def0b6fb7355fffab3c3 (diff)
default to undef so no command is run before the exec
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index 1966839..6d13c2b 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,5 +1,5 @@
define couchdb::query (
- $cmd, $url, $host='127.0.0.1:5984', $data = '{}', $unless = '/bin/false' ) {
+ $cmd, $url, $host='127.0.0.1:5984', $data = '{}', $unless = undef) {
exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${url} --data \'${data}\'":
require => [ Package['curl'], Exec['wait_for_couchdb'] ],