summaryrefslogtreecommitdiff
path: root/manifests/query.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-04 12:36:24 -0400
committerMicah Anderson <micah@riseup.net>2013-04-04 12:36:24 -0400
commitdc367e53b45349ef849247fc93c664c548c90359 (patch)
tree14531add8c5bf7ac20f66c9dff0262319b7b0133 /manifests/query.pp
parent66d918ddb6454fd4a30baed9b49baad98e274243 (diff)
clean-up commit: lint, standardize spacing, properly enclose variables, etc
Diffstat (limited to 'manifests/query.pp')
-rw-r--r--manifests/query.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/query.pp b/manifests/query.pp
index d912278..20e331d 100644
--- a/manifests/query.pp
+++ b/manifests/query.pp
@@ -1,5 +1,6 @@
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\'":
+
+ exec { "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc -X ${cmd} ${host}/${url} --data \'${data}\'":
require => [ Package['curl'], Exec['wait_for_couchdb'] ]
}
}