diff --git a/cloud/openstack/restapi/mode/port.pm b/cloud/openstack/restapi/mode/port.pm index 1adc57e55..6cb6ab783 100644 --- a/cloud/openstack/restapi/mode/port.pm +++ b/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}; }