change unknow to id for no name port

This commit is contained in:
Shini31 2016-06-07 17:29:37 +02:00
parent fdea339f95
commit cfe331cedc
1 changed files with 1 additions and 1 deletions

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