refuckulated the carbonator
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user