Dear Deepak,

On 10/15/2013 06:51 PM, Deepak Giridharagopal wrote:
>
> 1) You don't need to formulate the "payload" as a pre-serialized JSON
> string (with all the requisite escaping and whatnot) anymore. As of
> "replace catalog" version 2, you can just inline the raw JSON object
> itself:
>
> "payload": {"data": ..., "metadata": ..., ...}
>
> The entire command is a single JSON object that way, and the payload
> is just a normal value in that hash
> 3) With curl, you can supply an argument of "--data-urlencode
> [email protected]". Then you can just put the payload in a
> mycatalog.json file, and curl should automatically load the content
> and urlencode it for you.
> See http://curl.haxx.se/docs/manpage.html#--data-urlencode


This RAW version is quite interesting (escaping part of the thing is a
bit nasty), I will play with it :)

I have a question, though... if you can insert the RAW payload... what
happens with the command name?
I guess you mean:
"payload": { "command": "replace catalog",  "version": 2,  "payload":
{"data": ..., "metadata": ..., ...} }
Without any escape sequence at all, right?

And then send it with the --data-urlencode



>
>  That said, as there aren't any relationships specified in your above
> set of resource (no require/subscribe params, for example) I'm curious
> why the empty list of edges fails. That smells like a bug to me; would
> you mind filing a ticket against PuppetDB with the above command
> included? We can take a look and see what's up.

Submitted!


Thanks a lot,
Pablo Fernandez

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to