Marco Mornati wrote:
Hi Adrian,
I don't know which problem have you found. What I see during
func-transmit tests is that we cannot call func using list for client
and parameters.
Michael said (on IRC I think) that we must change client.py, and don't
know which other class, to get func working with this type of
"parameters"... at the moment I've made a patch inside func-java api,
so java can call without problem func-transmit and all work correctly.
Yup, thats what the patch in that tree does. It handles the case of
a list of parameters being passed, which should be how it's called. It also
handles the case of a single item being passed in, but thats not the
preferred approach.
I didn't test the case of multiple hostname globs, but yeah, it
needs to be able to handle that as well. A similar approach would work.
I've planned to change (I hope today, but I need to make some mods in
opensymbolic too) func-transmit to make it working with json too (java
does not work correctly with yaml... or yaml versions are not the
same, between java and python), and probably XML.
I'll take care that current implementation will work with "json
modifies"... so your tests will work without problem (ex. default
language, if you don't send to func-transmit your language choose,
will be yaml).
It shouldn't be too hard to make it understand "finc-transmit
--json" or "func-transmit --yaml" or whatever. We can change what the
default is
if we want to. I was just starting to look at doing that this morning,
but if you are on it, take it ;->
Adrian
_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list