Skip to content

Commit d197c59

Browse files
committed
Adjust flatpath
1 parent e357b4e commit d197c59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/gcp_get_methods.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
result = {}
88
result_ext = {}
9+
proto = {}
910

1011
def resources_recurse(resources, resource_type_path):
1112
for resource_type in resources.keys():
@@ -16,7 +17,7 @@ def resources_recurse(resources, resource_type_path):
1617
if method_id not in result[api['name']]['methods']:
1718
flatpath = resources[resource_type]['methods'][method_name]['flatPath'] if 'flatPath' in resources[resource_type]['methods'][method_name] else resources[resource_type]['methods'][method_name]['path']
1819
if flatpath.startswith(apidetail['version'] + "/"):
19-
flatpath = "\{_version\}" + flatpath[len(apidetail['version']):]
20+
flatpath = "{" + "_version}" + flatpath[len(apidetail['version']):]
2021

2122
result[api['name']]['methods'][method_id] = {
2223
'description': resources[resource_type]['methods'][method_name]['description'] if 'description' in resources[resource_type]['methods'][method_name] else '',

0 commit comments

Comments
 (0)