removed prints statements

This commit is contained in:
Aman Singh
2022-11-02 12:23:26 +05:30
parent 000711c7f1
commit 69e789b294
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -344,7 +344,6 @@ func getACRToken(subscriptionId, tenantId, clientId, clientSecret, cert, registr
return "", "", errors.Wrap(err, "failed to fetch access token")
}
fmt.Fprintf(os.Stderr, "aman %s\n", azToken.Token)
publicUrl, err := getPublicUrl(azToken.Token, registry, subscriptionId)
if err != nil {
return "", "", errors.Wrap(err, "failed to fetch access token")
@@ -402,7 +401,6 @@ func setupACRCert(cert string) error {
func getPublicUrl(token, registryUrl, subscriptionId string) (string, error) {
finalUrl := "https://portal.azure.com/#view/Microsoft_Azure_ContainerRegistries/TagMetadataBlade/registryId/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ContainerRegistry/"
registry := strings.Split(registryUrl, ".")[0]
fmt.Fprintf(os.Stderr, "aman %s %s %s\n", registry, registryUrl, subscriptionId)
burl := "https://management.azure.com/subscriptions/" +
subscriptionId + "/resources?$filter=resourceType%20eq%20'Microsoft.ContainerRegistry/registries'%20and%20name%20eq%20'" +
registry + "'&api-version=2021-04-01&$select=id"
@@ -424,8 +422,6 @@ func getPublicUrl(token, registryUrl, subscriptionId string) (string, error) {
}
defer res.Body.Close()
fmt.Fprintf(os.Stderr, "aman %d %s %s\n", res.StatusCode, strings.Split(subscriptionId, "b"), burl)
var response strct
err = json.NewDecoder(res.Body).Decode(&response)
if err != nil {
-1
View File
@@ -52,7 +52,6 @@ func WritePluginArtifactFile(registryType RegistryTypeEnum, artifactFilePath, re
RegistryUrl: registryUrl,
Images: images,
}
fmt.Fprintf(os.Stderr, "public Url is %s\n", registryUrl)
dockerArtifact := DockerArtifact{
Kind: dockerArtifactV1,