trollface: it's a generator
@@ -124,7 +124,7 @@ class PSCmd(cmd.Cmd):
return suggestions
def find_nodes(self, query):
- nodes = self.inventory.find_nodes(query)
+ nodes = list(self.inventory.find_nodes(query))
if not nodes:
print(colored("No matching hosts", "yellow"))
return nodes
