Skip to content

Commit 58c6bed

Browse files
authored
fix service names beginning with "Amazon" (#1646)
API Gateway v2's service full name is AmazonApiGatewayv2. Amazon MQ's service full name is AmazonMQ. Due to an off-by-one index error, these service de-stuttered names were appearing as "piGatewayv2" and "Q". This fixes that off-by-one error. Signed-off-by: Jay Pipes <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 5315c06 commit 58c6bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/scripts/gen_services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def build_controller_table(controllers: List[controller.Controller], display_nam
6161

6262
doc_anchor_link = display_name.lower().replace(" ", "-")
6363
service_name = f"{display_name_split[0]} [{display_name_split[1]}](#{doc_anchor_link})"
64-
64+
6565
proj_stage = f"`{c.project_stage}`"
6666
maint_phase = f"`{c.maintenance_phase}`"
6767
con_version = "n/a"
@@ -125,7 +125,7 @@ def create_display_names(controllers) -> DisplayNameMap:
125125
continue
126126

127127
if proper_name.startswith("Amazon"):
128-
proper_name = proper_name[7:]
128+
proper_name = proper_name[6:]
129129

130130
# Default service names' proper name to "Amazon {service}"
131131
names[key] = f"Amazon {proper_name}"

0 commit comments

Comments
 (0)