Open
Description
Describe the bug
When using tab complete after --storage-connectors, I get an error.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Not output an error.
This is the shorthand syntax from the docs.
ConnectorType=string,ResourceIdentifier=string,Domains=string,string,DomainsRequireAdminConsent=string,string ...
https://docs.aws.amazon.com/cli/latest/reference/appstream/update-stack.html
Current Behavior
aws appstream update-stack --storage-connectors Traceback (most recent call last):
File "/opt/homebrew/bin/aws_completer", line 37, in <module>
main()
~~~~^^
File "/opt/homebrew/bin/aws_completer", line 29, in main
autocomplete(command_line, command_index)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/awscli/2.27.43/libexec/lib/python3.13/site-packages/awscli/autocomplete/main.py", line 61, in autocomplete
results = completer.autocomplete(command_line, position)
File "/opt/homebrew/Cellar/awscli/2.27.43/libexec/lib/python3.13/site-packages/awscli/autocomplete/completer.py", line 45, in autocomplete
result = completer.complete(parsed)
File "/opt/homebrew/Cellar/awscli/2.27.43/libexec/lib/python3.13/site-packages/awscli/autocomplete/serverside/servercomp.py", line 71, in complete
return self._filter(
~~~~~~~~~~~~^
parsed.current_fragment,
^^^^^^^^^^^^^^^^^^^^^^^^
self._convert_to_completion_data(raw_results, parsed),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awscli/2.27.43/libexec/lib/python3.13/site-packages/awscli/autocomplete/filters.py", line 63, in startswith_filter
if (completion.display_text or completion.name).startswith(prefix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'startswith'
Reproduction Steps
Enter aws appstream update-stack --storage-connectors
and then tab
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.27.43 Python/3.13.5 Darwin/24.5.0 source/arm64
Environment details (OS name and version, etc.)
Mac OS 15.5