Add debug for vmware

This commit is contained in:
garnier-quentin 2019-03-26 15:44:29 +01:00
parent 62862dae1e
commit d716a11b4c

View File

@ -46,8 +46,7 @@ sub new {
} }
if (!defined($options{noptions})) { if (!defined($options{noptions})) {
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{
"connector-hostname:s@" => { name => 'connector_hostname' }, "connector-hostname:s@" => { name => 'connector_hostname' },
"connector-port:s@" => { name => 'connector_port' }, "connector-port:s@" => { name => 'connector_port' },
"vsphere-address:s@" => { name => 'vsphere_address' }, "vsphere-address:s@" => { name => 'vsphere_address' },
@ -164,6 +163,7 @@ sub connector_response {
my $json = $1; my $json = $1;
eval { eval {
$self->{output}->output_add(long_msg => $json, debug => 1);
$self->{result} = JSON->new->utf8->decode($json); $self->{result} = JSON->new->utf8->decode($json);
}; };
if ($@) { if ($@) {