PageRenderTime 182ms CodeModel.GetById 81ms app.highlight 1ms RepoModel.GetById 59ms app.codeStats 0ms

/silverlining/commands/list_nodes.py

https://bitbucket.org/ianb/silverlining/
Python | 9 lines | 6 code | 2 blank | 1 comment | 2 complexity | 01ce1cc92d001f399f5f3bb2a392dc41 MD5 | raw file
1"""List active nodes"""
2
3
4def command_list_nodes(config):
5    for node in config.driver.list_nodes():
6        config.logger.notify(
7            '%s:%s %s' % (
8                node.name, ' '*(30-len(node.name)),
9                ', '.join(node.public_ip)))