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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -403,9 +403,7 @@ def document_api(name, version, uri, doc_destination_dir):
if resp.status == 200: if resp.status == 200:
discovery = json.loads(content) discovery = json.loads(content)
service = build_from_document(discovery) service = build_from_document(discovery)
version = safe_version(version) doc_name = "{}.{}.json".format(name, version)
doc_name = "{}.{}.json".format(name, version.replace("_", ""))

discovery_file_path = DISCOVERY_DOC_DIR / doc_name discovery_file_path = DISCOVERY_DOC_DIR / doc_name
revision = None revision = None


Expand Down Expand Up @@ -435,7 +433,7 @@ def document_api(name, version, uri, doc_destination_dir):
return return


document_collection_recursive( 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.