diff --git a/cloud/openstack/restapi/mode/port.pm b/cloud/openstack/restapi/mode/port.pm index ca076c1ea..1adc57e55 100644 --- a/cloud/openstack/restapi/mode/port.pm +++ b/cloud/openstack/restapi/mode/port.pm @@ -136,7 +136,7 @@ sub api_request { eval { $webcontent = $json->decode($jsoncontent); }; - if ($self->{port_infos}->{name} eq '') { + if ($webcontent->{port}->{name} eq '') { $self->{port_infos}->{name} = "unknown"; } else { $self->{port_infos}->{name} = $webcontent->{port}->{name};