From 75f71932df514be2dfc0a9a61b300d8f9bd69369 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 14 Aug 2013 17:01:43 +0200 Subject: default to undef so no command is run before the exec --- manifests/query.pp | 2 +- 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'], -- cgit v1.2.3