From f32acc0b7b2bbe641d573a9abdfa96f600d01073 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 13 Jul 2018 16:49:12 +0200 Subject: [PATCH] discovery/openstack: remove unneeded assignment Signed-off-by: Simon Pasquier --- discovery/openstack/hypervisor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discovery/openstack/hypervisor.go b/discovery/openstack/hypervisor.go index 360eedb0a..3d7a304f7 100644 --- a/discovery/openstack/hypervisor.go +++ b/discovery/openstack/hypervisor.go @@ -123,9 +123,7 @@ func (h *HypervisorDiscovery) refresh() (*targetgroup.Group, error) { return false, fmt.Errorf("could not extract hypervisors: %s", err) } for _, hypervisor := range hypervisorList { - labels := model.LabelSet{ - openstackLabelHypervisorHostIP: model.LabelValue(hypervisor.HostIP), - } + labels := model.LabelSet{} addr := net.JoinHostPort(hypervisor.HostIP, fmt.Sprintf("%d", h.port)) labels[model.AddressLabel] = model.LabelValue(addr) labels[openstackLabelHypervisorHostName] = model.LabelValue(hypervisor.HypervisorHostname)