diff options
author | varac <varacanero@zeromail.org> | 2013-05-23 21:20:07 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-05-23 21:20:07 +0200 |
commit | 0c34d9bd1c51d4e633f92e459b7973008350aefb (patch) | |
tree | 9ac4b9866fddfa9117be275e971caeef2d2ab649 | |
parent | 7b6c9a29b1333ce733dd5d7c0dadd7f90513b261 (diff) |
use {} when no data is passed
-rw-r--r-- | manifests/query.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/query.pp b/manifests/query.pp index 20e331d..76ef648 100644 --- a/manifests/query.pp +++ b/manifests/query.pp @@ -1,4 +1,4 @@ -define couchdb::query ( $cmd, $url, $host='127.0.0.1:5984', $data = '' ) { +define couchdb::query ( $cmd, $url, $host='127.0.0.1:5984', $data = '{}' ) { exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${url} --data \'${data}\'": require => [ Package['curl'], Exec['wait_for_couchdb'] ] |