diff options
author | Anthonios Partheniou <partheniou@google.com> | 2021-05-27 16:49:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 14:49:17 -0600 |
commit | 31bbe51739f966491f1be8ab67c500c65c049daf (patch) | |
tree | 33216a8b856970e3c85f471dfc57d336c39d3516 /describe.py | |
parent | 4c9ccb08aa866b5402c5e63c70306b5a3c121ba1 (diff) | |
download | google-api-python-client-31bbe51739f966491f1be8ab67c500c65c049daf.tar.gz |
fix: resolve issue where certain artifacts would not be updated (#1385)
Diffstat (limited to 'describe.py')
-rwxr-xr-x | describe.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/describe.py b/describe.py index 1f846fd88..b565872bd 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 ) |