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

ec2 ls -l gives format error #80

Open
dalmadebreceni opened this issue Feb 21, 2019 · 0 comments
Open

ec2 ls -l gives format error #80

dalmadebreceni opened this issue Feb 21, 2019 · 0 comments

Comments

@dalmadebreceni
Copy link

File "/usr/local/lib/python3.6/dist-packages/jungle/ec2.py", line 22, in format_output
tag_name, i.state['Name'], i.id, i.private_ip_address, str(i.public_ip_address)))
TypeError: unsupported format string passed to NoneType.format

fix:
diff --git a/jungle/ec2.py b/jungle/ec2.py
index 963d1fc..1e4108d 100644
--- a/jungle/ec2.py
+++ b/jungle/ec2.py
@@ -18,7 +18,7 @@ def format_output(instances, flag):
for i in instances:
tag_name = get_tag_value(i.tags, 'Name')
out.append(line_format.format(

  •        tag_name, i.state['Name'], i.id, i.private_ip_address, str(i.public_ip_address)))
    
  •        tag_name, i.state['Name'], i.id, str(i.private_ip_address), str(i.public_ip_address)))
    
    return out
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