mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
change unknow to id for no name port
This commit is contained in:
parent
fdea339f95
commit
cfe331cedc
@ -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};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user