From 31bbe51739f966491f1be8ab67c500c65c049daf Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 27 May 2021 16:49:17 -0400 Subject: [PATCH] fix: resolve issue where certain artifacts would not be updated (#1385) --- describe.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/describe.py b/describe.py index 1f846fd881c..b565872bdde 100755 --- a/describe.py +++ b/describe.py @@ -403,9 +403,7 @@ def document_api(name, version, uri, doc_destination_dir): if resp.status == 200: discovery = json.loads(content) service = build_from_document(discovery) - version = safe_version(version) - doc_name = "{}.{}.json".format(name, version.replace("_", "")) - + doc_name = "{}.{}.json".format(name, version) discovery_file_path = DISCOVERY_DOC_DIR / doc_name revision = None @@ -435,7 +433,7 @@ def document_api(name, version, uri, doc_destination_dir): return document_collection_recursive( - service, "{}_{}.".format(name, version), discovery, discovery, doc_destination_dir + service, "{}_{}.".format(name, safe_version(version)), discovery, discovery, doc_destination_dir )