From 643997320d0b12c14939f49b660bef1949aee1cb Mon Sep 17 00:00:00 2001 From: Jesse Haka Date: Wed, 13 Jan 2021 11:57:01 +0200 Subject: [PATCH] fix comment --- pkg/resources/openstack/floatingip.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/resources/openstack/floatingip.go b/pkg/resources/openstack/floatingip.go index f5210716a0..8e6cc5e44d 100644 --- a/pkg/resources/openstack/floatingip.go +++ b/pkg/resources/openstack/floatingip.go @@ -58,8 +58,9 @@ func (os *clusterDiscoveryOS) listL3FloatingIPs(routerID string) ([]*resources.R func (os *clusterDiscoveryOS) listFloatingIPs(instance servers.Server) ([]*resources.Resource, error) { var resourceTrackers []*resources.Resource + // we can find real instance name from instance name in old format + // however, in new format the real name can be found in metadata name := instance.Name - // this is needed for backwards compatbility issues with new and old instance name format if val, ok := instance.Metadata[openstack.TagKopsName]; ok { name = val }