[Fusioninventory-devel] Display Server response
Gonéri Le Bouder
goneri at rulezlan.org
Wed Nov 14 11:53:44 UTC 2012
On Wed, Nov 14, 2012 at 11:24:45AM +0100, Mario Gzuk wrote:
> Ah... ok. I only have the 2.2.6 running now. I thought that it was allready
> in there... Are there some prebuild packages for 2.3.x series? I only found:
> http://prebuilt.fusioninventory.org/devel/2.2.x/
2.3.x is still in developement and not ready for production.
> So if the deploy task is running pure json, I allready dont know how to
> start a deploy task via the prolog or the <REPLY><RESPONSE> answer. Is there
> some doc how to do this?
This is the documentation:
http://forge.fusioninventory.org/projects/fusioninventory-agent/wiki/API-REST-deploy
This changes may help understand what's going on:
diff --git a/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm b/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
index 6ee5e7c..9421dba 100644
--- a/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
+++ b/lib/FusionInventory/Agent/HTTP/Client/Fusion.pm
@@ -65,6 +65,8 @@ sub send { ## no critic (ProhibitBuiltinHomonyms)
my $response = $self->request($request);
+ print $response."\n";
+
return unless $response;
return eval { from_json( $response->content(), { utf8 => 1 } ) };
Best regards,
--
Gonéri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20121114/65b4f569/attachment.pgp>
More information about the Fusioninventory-devel
mailing list