bug day...
This commit is contained in:
parent
bf984c2e06
commit
fdea339f95
|
@ -136,7 +136,7 @@ sub api_request {
|
||||||
eval {
|
eval {
|
||||||
$webcontent = $json->decode($jsoncontent);
|
$webcontent = $json->decode($jsoncontent);
|
||||||
};
|
};
|
||||||
if ($self->{port_infos}->{name} eq '') {
|
if ($webcontent->{port}->{name} eq '') {
|
||||||
$self->{port_infos}->{name} = "unknown";
|
$self->{port_infos}->{name} = "unknown";
|
||||||
} else {
|
} else {
|
||||||
$self->{port_infos}->{name} = $webcontent->{port}->{name};
|
$self->{port_infos}->{name} = $webcontent->{port}->{name};
|
||||||
|
|
Loading…
Reference in New Issue