Skip to content
Browse files

Use v3 end-point for import and benchmark tools

The function 'submit-command-via-http!' was still posting commands to the
/v2/command end-point which is no longer the latest. This wouldn't have
been a major problem, but it might have messed up some of the metrics based
http stats for users.

The patch switches the function to use the v3 endpoint, in this case an
unversioned end-point would be perfect but we lack that functionality.

Signed-off-by: Ken Barber <>
  • Loading branch information...
1 parent 311843e commit bda39532f5bb994f677c1981d2d2b6162f504e1e @kbarber kbarber committed Feb 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/puppetlabs/puppetdb/command.clj
2 src/com/puppetlabs/puppetdb/command.clj
@@ -225,7 +225,7 @@
body (format "checksum=%s&payload=%s"
(kitchensink/utf8-string->sha1 message)
(url-encode message))
- url (format "http://%s:%s/v2/commands" host port)]
+ url (format "http://%s:%s/v3/commands" host port)]
(client/post url {:body body
:throw-exceptions false
:content-type :x-www-form-urlencoded

0 comments on commit bda3953

Please sign in to comment.
Something went wrong with that request. Please try again.