Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit 2042535

Browse files
committed
fix: code clean up
1 parent ba6fc4e commit 2042535

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ python = "^3.9"
2222
typer = {extras = ["all"], version = "^0.13.0"}
2323
rich = "^13.9.4"
2424
boto3 = "^1.35.0"
25-
questionary = "^2.0.1"
25+
questionary = "^2.1.0"
2626
requests = "^2.26"
2727
pydantic = "^2.9.2"
2828
sagemaker = "^2.237.0"

src/emd/cfn/ecs/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,4 @@ Outputs:
395395
Value: !Join ['', ['http://', !Ref DNSName]]
396396
ECSServiceConnect:
397397
Description: Service Connect allows for service-to-service communications with automatic discovery using short names and standard ports.
398-
Value: !Join ['', ['http://', !GetAtt ConvertDnsName.DnsName, ':', !Ref ContainerPort]]
398+
Value: !Join ['', ['http://', !GetAtt ConvertDnsName.DnsName, ':', !Ref ContainerPort]]

src/emd/cfn/shared/ecs_cluster.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,23 @@ Resources:
220220
221221
# Send response back to CloudFormation
222222
cfnresponse.send(event, context, response_status, response_data)
223-
223+
224224
def convert_dns_name(event, context):
225225
"""
226226
Converts a DNS name to comply with AWS Service Connect naming rules.
227227
DNS names can only contain lowercase letters and numbers.
228228
"""
229229
import re
230-
230+
231231
# Get the input DNS name from the event
232232
dns_name = event['ResourceProperties'].get('ModelName', '')
233-
233+
234234
# Step 1: Convert to lowercase
235235
dns_name = dns_name.lower()
236-
236+
237237
# Step 2: Replace any character that is not a lowercase letter or number with a hyphen
238238
dns_name = re.sub(r'[^a-z0-9]', '-', dns_name)
239-
239+
240240
response_data = {'DnsName': dns_name}
241241
cfnresponse.send(event, context, cfnresponse.SUCCESS, response_data)
242242

src/emd/cfn/shared/openai_router/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func httpProxyHandler(c *gin.Context, endpointURL string, inputBytes []byte) {
264264
path := c.Request.URL.Path
265265
fullURL := baseURL + path
266266
log.Printf("[DEBUG] Proxying request to URL %s", fullURL)
267-
267+
268268
req, err := http.NewRequest(c.Request.Method, fullURL, bytes.NewReader(inputBytes))
269269
if err != nil {
270270
c.JSON(500, gin.H{"error": fmt.Sprintf("Failed to create HTTP request: %v", err)})

0 commit comments

Comments
 (0)