diff options
author | Azul <azul@riseup.net> | 2013-08-14 17:01:43 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-08-14 17:01:43 +0200 |
commit | 75f71932df514be2dfc0a9a61b300d8f9bd69369 (patch) | |
tree | 1e0b3088c9bb6c8f3a573f2f50953f85b7910c83 | |
parent | 371f1790d1dfbc7f9b32def0b6fb7355fffab3c3 (diff) |
default to undef so no command is run before the exec
-rw-r--r-- | manifests/query.pp | 2 | ||||
-rw-r--r-- | manifests/update.pp | 2 |
2 files changed, 2 insertions, 2 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'] ], diff --git a/manifests/update.pp b/manifests/update.pp index bbd2591..579659b 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -1,4 +1,4 @@ -define couchdb::update ($db, $id, $data, $port='5984', $unless='/bin/false') { +define couchdb::update ($db, $id, $data, $port='5984', $unless=undef) { exec { "couch-doc-update --port ${port} --db ${db} --id ${id} --data \'${data}\'": require => Exec['wait_for_couchdb'], |