We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0381fc commit c2e804cCopy full SHA for c2e804c
1 file changed
pkg/integrations/oci/oci.go
@@ -255,8 +255,10 @@ func (o *OCI) Cleanup(ctx core.IntegrationCleanupContext) error {
255
}
256
257
258
- if err := client.DeleteONSTopic(metadata.TopicID); err != nil {
259
- ctx.Logger.Warnf("failed to delete ONS topic %q during cleanup: %v", metadata.TopicID, err)
+ if metadata.TopicID != "" {
+ if err := client.DeleteONSTopic(metadata.TopicID); err != nil {
260
+ ctx.Logger.Warnf("failed to delete ONS topic %q during cleanup: %v", metadata.TopicID, err)
261
+ }
262
263
264
return nil
0 commit comments