From cfe331cedcbb1cbc804ed1a496d987edec0d8625 Mon Sep 17 00:00:00 2001 From: Shini31 Date: Tue, 7 Jun 2016 17:29:37 +0200 Subject: [PATCH] change unknow to id for no name port --- 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 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}; }