From 904cde0223d1d4220e22587d7091909a005cbca3 Mon Sep 17 00:00:00 2001 From: Shini31 Date: Tue, 7 Jun 2016 17:29:37 +0200 Subject: [PATCH] change unknow to id for no name port --- centreon-plugins/cloud/openstack/restapi/mode/port.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/cloud/openstack/restapi/mode/port.pm b/centreon-plugins/cloud/openstack/restapi/mode/port.pm index 1adc57e55..6cb6ab783 100644 --- a/centreon-plugins/cloud/openstack/restapi/mode/port.pm +++ b/centreon-plugins/cloud/openstack/restapi/mode/port.pm @@ -137,7 +137,7 @@ sub api_request { $webcontent = $json->decode($jsoncontent); }; if ($webcontent->{port}->{name} eq '') { - $self->{port_infos}->{name} = "unknown"; + $self->{port_infos}->{name} = $webcontent->{port}->{id}; } else { $self->{port_infos}->{name} = $webcontent->{port}->{name}; }