Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now files being output with --filename option #89

Open
jrpatrick opened this issue Feb 9, 2025 · 0 comments
Open

now files being output with --filename option #89

jrpatrick opened this issue Feb 9, 2025 · 0 comments

Comments

@jrpatrick
Copy link

jrpatrick commented Feb 9, 2025

What is the problem?

I get the following errors while running all_my_subnets.py to get a list of subnets written out to a filename.

 Traceback (most recent call last):
 File "/home/ cloudshell-user/cloud-foundations-templates/cloud-foundations-templates/inventory-scripts/all_my_subnets-py", line 218, in ‹module>
 present_results (SubnetsFound)
 File "/home/ cloudshell-user/cloud-foundations-templates/cloud-foundations-templates/inventory-scripts/all_my_subnets.py", line 145, in present_ results
 display_results(sorted_Subnets_Found, display_dict, 'None', pFilename)
 File "/home/cloudshell-user/cloud-foundations-templates/cloud-foundations-templates/inventory-scripts/Inventory_Modules.py", line 4619, in display_rest
 handle_list()
 File "/home/cloudshell-user/cloud-foundations-templates/cloud-foundations-templates/inventory-scripts/Inventory_Modules-py", line 4481, in handle_ list
 row += f"(result[field]: {data_format}s} |"
 ValueError: '=' alignment not allowed in string format specifier

Reproduction Steps

# python3 all_my_subnets.py -r us-east-1 --filename subnets.txt

What did you expect to happen?

to get output in a directory and files.

What actually happened?

getting the error listed above and no output in the file

version of IaC or CLI being used

aws-cli/2.23.8

Other information

No response

@jrpatrick jrpatrick changed the title (name): short issue description now files being output with --filename option Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant