Skip to content

Commit

Permalink
wip: update new connector condition - debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshi06 committed Sep 25, 2024
1 parent b2e3f1e commit 6bea324
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,14 +633,19 @@ func buildRegistryPayload(
if err != nil {
return connectorVersion, err
}
log.Printf("check condition")
log.Printf("before check condition")

log.Printf("is length of HubRegistryConnector is 0", len(connectorInfo.HubRegistryConnector) == 0)
log.Printf("isNewConnector", isNewConnector)

// Check if the connector exists in the registry first
if len(connectorInfo.HubRegistryConnector) == 0 && !isNewConnector {
log.Printf("connector doesn't exist in the registry or newly added")
return connectorVersion, fmt.Errorf("Inserting a new connector is not supported yet")
}

log.Printf("after check condition")

var connectorVersionType string

if connectorVersionPackagingType == PrebuiltDockerImage {
Expand Down

0 comments on commit 6bea324

Please sign in to comment.