Skip to content

Commit 6b23f13

Browse files
author
Jing Zhang
committed
Design tested in v1.23 and v1.25.
1 parent 8e87a4f commit 6b23f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/instances.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ func nodeAddresses(srv *servers.Server, ports []ports.Port, client *gophercloud.
640640
if client != nil {
641641
subports, err := getSubports(client, srv.ID)
642642
if err == nil {
643-
var subportAddresses map[string][]Address
643+
subportAddresses := make(map[string][]Address)
644644
for _, subport := range subports {
645645
for _, fixedIP := range subport.FixedIPs {
646646
isIPv6 := net.ParseIP(fixedIP.IPAddress).To4() == nil

0 commit comments

Comments
 (0)