From e8a25b6ed73d24289abb4372eb6183a8eae4c2a2 Mon Sep 17 00:00:00 2001 From: Jan Staelens Date: Wed, 22 Jan 2025 09:57:50 +0100 Subject: [PATCH] Removed workaround to duplicate upload. --- .../CatalogService/HttpCatalogService.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CICD.Tools.CatalogUpload.Lib/CatalogService/HttpCatalogService.cs b/CICD.Tools.CatalogUpload.Lib/CatalogService/HttpCatalogService.cs index 55b4148..9e3bf21 100644 --- a/CICD.Tools.CatalogUpload.Lib/CatalogService/HttpCatalogService.cs +++ b/CICD.Tools.CatalogUpload.Lib/CatalogService/HttpCatalogService.cs @@ -128,13 +128,8 @@ public async Task UploadVersionAsync(byte[] package, strin if (response.IsSuccessStatusCode) { _logger.LogDebug($"The version upload api returned a {response.StatusCode} response. Body: {body}"); - - // Problem, Deployer cannot handle the new flow of catalog upload. So we will use the 'old' upload again. Return that Identifier. - CatalogMetaData meta = new CatalogMetaData() { Name = fileName, Version = new CatalogVersionMetaData() { Value = version } }; - return await VolatileArtifactUploadAsync(package, key, meta, cancellationToken); - - //var returnedResult = JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false)); - //return new ArtifactUploadResult() { ArtifactId = returnedResult.AzureStorageId }; + var returnedResult = JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false)); + return new ArtifactUploadResult() { ArtifactId = returnedResult.AzureStorageId }; } _logger.LogError($"The version upload api returned a {response.StatusCode} response. Body: {body}");