Skip to content

Commit 9630dc6

Browse files
authored
discovery(openstack): remove duplicated error handling for floatingips.List (prometheus#16205)
Signed-off-by: Paulo Dias <[email protected]>
1 parent bfa6138 commit 9630dc6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: discovery/openstack/loadbalancer.go

-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ func (i *LoadBalancerDiscovery) refresh(ctx context.Context) ([]*targetgroup.Gro
118118

119119
// Fetch all floating IPs
120120
fipPages, err := floatingips.List(networkClient, floatingips.ListOpts{}).AllPages(ctx)
121-
if err != nil {
122-
return nil, fmt.Errorf("failed to list all fips: %w", err)
123-
}
124121
if err != nil {
125122
return nil, fmt.Errorf("failed to list floating IPs: %w", err)
126123
}

0 commit comments

Comments
 (0)