Skip to content

Commit 281075f

Browse files
author
maxime.hubert
committed
feat(occm/lb): octavia prometheus listener's annotation fix on metricAllowedCIDRs
1 parent 19bf4ef commit 281075f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pkg/openstack/loadbalancer.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,14 +1205,13 @@ func (lbaas *LbaasV2) ensureOctaviaListener(ctx context.Context, lbID string, na
12051205
listenerChanged = true
12061206
}
12071207
}
1208-
1209-
if listenerChanged {
1210-
klog.InfoS("Updating listener", "listenerID", listener.ID, "lbID", lbID, "updateOpts", updateOpts)
1211-
if err := openstackutil.UpdateListener(ctx, lbaas.lb, lbID, listener.ID, updateOpts); err != nil {
1212-
return nil, fmt.Errorf("failed to update listener %s of loadbalancer %s: %v", listener.ID, lbID, err)
1213-
}
1214-
klog.InfoS("Updated listener", "listenerID", listener.ID, "lbID", lbID)
1208+
}
1209+
if listenerChanged {
1210+
klog.InfoS("Updating listener", "listenerID", listener.ID, "lbID", lbID, "updateOpts", updateOpts)
1211+
if err := openstackutil.UpdateListener(ctx, lbaas.lb, lbID, listener.ID, updateOpts); err != nil {
1212+
return nil, fmt.Errorf("failed to update listener %s of loadbalancer %s: %v", listener.ID, lbID, err)
12151213
}
1214+
klog.InfoS("Updated listener", "listenerID", listener.ID, "lbID", lbID)
12161215
}
12171216
}
12181217
return listener, nil

0 commit comments

Comments
 (0)