Skip to content

Commit

Permalink
fix: resolve issue where certain artifacts would not be updated (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed May 27, 2021
1 parent 4c9ccb0 commit 31bbe51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions describe.py
Expand Up @@ -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

Expand Down Expand Up @@ -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
)


Expand Down

0 comments on commit 31bbe51

Please sign in to comment.