def bootstrap_hosts(self, args, config, connection): cluster = ForeignCluster(connection=connection) cluster.read() hosts = [] for host in cluster.bootstrap_hosts(): hosts.append(host.host_name()) print(json.dumps(hosts, sort_keys=True, indent=2))
def bootstrap_hosts(self,args, config, connection): cluster = ForeignCluster(connection=connection) cluster.read() hosts = [] for host in cluster.bootstrap_hosts(): hosts.append(host.host_name()) print(json.dumps(hosts, sort_keys=True, indent=2))
def get(self, args, config, connection): cluster = ForeignCluster(args['name'], connection=connection) cluster.read() self.jprint(cluster)