ITADN

Syntax Error in ebcli/controllers/migrate.py

#558OpenCuylerE 创建于 2025-05-19
C
CuylerEcommented
<!-- Make sure we don't have an existing Issue that reports the bug you are seeing (both open and closed). If you do find an existing Issue, re-open or add a comment to that Issue instead of creating a new one. If your issue is not specific to aws-elastic-beanstalk-cli try posting it to the AWS Elastic Beanstalk forum(https://forums.aws.amazon.com/forum.jspa?forumID=86).--> ### Description upon running `eb --version` I receive a syntax error. The string on line 2517 needs double-quotes. ### Steps to reproduce Provide steps to replicate. This should include: exact `ebcli` commands, any relevant configuration files(sanitized), platform version, region, as well as any additional information you think is relevant. run `ebcli --version --debug` ### Observed result Please provide command output with `--debug` flag set. Traceback (most recent call last): -- File "/root/.local/bin/eb", line 5, in <module> from ebcli.core.ebcore import main File "/root/.local/lib/python3.9/site-packages/ebcli/core/ebcore.py", line 35, in <module> from ebcli.controllers.migrate import MigrateController, MigrateExploreController, MigrateCleanupController File "/root/.local/lib/python3.9/site-packages/ebcli/controllers/migrate.py", line 2517 return f'{site.Name}-{application.Path.strip('/')}' ^ SyntaxError: f-string: unmatched '(' ### Expected result The latest eb CLI version number. ### Additional environment details (Ex: Windows, Mac, Amazon Linux etc) 1. OS: Amazon Linux 2 2. EBCLI version: I don't know ;) pip command says 'awsebcli-3.24.tar.gz'
5 条评论