change unknow to id for no name port

This commit is contained in:
Shini31 2016-06-07 17:29:37 +02:00
parent 5018d0d82c
commit 904cde0223

View File

@ -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};
}