refuckulated the carbonator

This commit is contained in:
2023-03-12 05:14:50 +02:00
parent e04acf4f6f
commit 8652a8fecb

View File

@@ -1018,7 +1018,7 @@ def list_all_nodes(filterOut=None):
print("No nodes") print("No nodes")
exit(0) exit(0)
if filterOut == "terminated": if filterOut == "terminated":
nodes = list(filter(lambda x: 'terminated' not in x.state.lower(), nodes)) nodes = list(filter(lambda x: 'terminated' not in x.state.lower() and 'unknown' not in x.state.lower(), nodes))
for node in nodes: for node in nodes:
count += 1 count += 1
print("{}) {}\n\nState: {}\nPublic IPs: {}\nPrivate IPs: {}\nDriver: {}\nSize: {}\nImage: {}\nCreation Date: {}\nExtra: {}\n".format(count, node.name, node.state, node.public_ips, node.private_ips, node.driver, node.size, node.image, node.created_at, node.extra)) print("{}) {}\n\nState: {}\nPublic IPs: {}\nPrivate IPs: {}\nDriver: {}\nSize: {}\nImage: {}\nCreation Date: {}\nExtra: {}\n".format(count, node.name, node.state, node.public_ips, node.private_ips, node.driver, node.size, node.image, node.created_at, node.extra))