PageRenderTime 4ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/silverlining/commands/list_nodes.py

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