Skip to content

Commit

Permalink
Add more information to on conflict for gateway PE linkId (#3054)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennerv authored Jul 31, 2023
1 parent 058a214 commit 940e5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/ipaddresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (m *manager) ensureGatewayCreate(ctx context.Context) error {
if !strings.EqualFold(gwyDoc.ID, m.doc.OpenShiftCluster.ID) ||
!strings.EqualFold(gwyDoc.Gateway.ImageRegistryStorageAccountName, m.doc.OpenShiftCluster.Properties.ImageRegistryStorageAccountName) ||
!strings.EqualFold(gwyDoc.Gateway.StorageSuffix, m.doc.OpenShiftCluster.Properties.StorageSuffix) {
return errors.New("gateway record already exists for a different cluster")
return fmt.Errorf("gateway record '%s' already exists for a different cluster '%s'", linkIdentifier, gwyDoc.ID)
}
}

Expand Down

0 comments on commit 940e5a0

Please sign in to comment.