From fdea339f95e003bd78b734c0b3a4d1582fff3eb9 Mon Sep 17 00:00:00 2001 From: Shini31 Date: Tue, 7 Jun 2016 17:26:55 +0200 Subject: [PATCH] bug day... --- cloud/openstack/restapi/mode/port.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};