1 from completers import ClusterCompleter 2 3 4 -class CmdListClusters(ClusterCompleter): 5 """ 6 listclusters [<cluster_tag> ...] 7 8 List all active clusters 9 """ 10 names = ['listclusters', 'lc'] 11 12 - def addopts(self, parser): 13 parser.add_option("-s", "--show-ssh-status", dest="show_ssh_status", 14 action="store_true", default=False, 15 help="output whether SSH is up on each node or not") 16 17 - def execute(self, args): 18 self.cm.list_clusters(cluster_groups=args, 19 show_ssh_status=self.opts.show_ssh_status) 20