Skip to content

Commit

Permalink
add a debug log in cleaning uploaded connector versions
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jul 31, 2024
1 parent 15537e9 commit e368a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ func runCI(cmd *cobra.Command, args []string) {
if err != nil {
// attempt to cleanup the uploaded connector versions
_ = cleanupUploadedConnectorVersions(client, connectorVersions) // ignore errors while cleaning up

log.Fatalf("Failed to update the registry: %v", err)
}
}
Expand All @@ -226,6 +225,7 @@ func runCI(cmd *cobra.Command, args []string) {
func cleanupUploadedConnectorVersions(client *storage.Client, connectorVersions []ConnectorVersion) error {
// Iterate over the connector versions and delete the uploaded files
// from the google bucket
fmt.Println("Cleaning up the uploaded connector versions")

for _, connectorVersion := range connectorVersions {
objectName := generateGCPObjectName(connectorVersion.Namespace, connectorVersion.Name, connectorVersion.Version)
Expand Down

0 comments on commit e368a05

Please sign in to comment.