From e8e8329aab17888c208cb675e501875bf0681203 Mon Sep 17 00:00:00 2001 From: cmeng Date: Fri, 2 Jun 2023 11:53:46 +1200 Subject: [PATCH] fix(registry): disable tls for azure [EE-3726] (#8605) --- app/portainer/models/registry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/portainer/models/registry.js b/app/portainer/models/registry.js index 6562bd8c7..6a7d81dcd 100644 --- a/app/portainer/models/registry.js +++ b/app/portainer/models/registry.js @@ -32,13 +32,13 @@ export function RegistryManagementConfigurationDefaultModel(registry) { this.TLSSkipVerify = true; } - if (registry.Type === RegistryTypes.QUAY || registry.Type === RegistryTypes.AZURE || registry.Type === RegistryTypes.ECR) { + if (registry.Type === RegistryTypes.QUAY || registry.Type === RegistryTypes.ECR) { this.Authentication = true; this.Username = registry.Username; this.TLS = true; } - if ((registry.Type === RegistryTypes.CUSTOM || registry.Type === RegistryTypes.PROGET) && registry.Authentication) { + if ((registry.Type === RegistryTypes.CUSTOM || registry.Type === RegistryTypes.PROGET || registry.Type === RegistryTypes.AZURE) && registry.Authentication) { this.Authentication = true; this.Username = registry.Username; }