Get a list of hubs names.
        
        Returns
        -------
        hubs : list
            List of hub names
196998
def get_hubs(self):
        
        # Use helm to get a list of hubs.
        output = helm(
            'list',
            '-q'
        )
        # Check if an error occurred.
        if output.returncode != 0:
            print("Something went wrong!")
            print(output.stderr)
        else:
            hubs = output.stdout.split()
            return hubs
456046
def _get_coordinatenames(self):
        
        validnames = ("direction", "spectral", "linear", "stokes", "tabular")
        self._names = [""] * len(validnames)
        n = 0
        for key in self._csys.keys():
            for name in validnames:
                if key.startswith(name):
                    idx = int(key[len(name):])
                    self._names[idx] = name
                    n += 1
        # reverse as we are c order in python
        self._names = self._names[:n][::-1]

        if len(self._names) == 0:
            raise LookupError("Coordinate record doesn't contain valid coordinates")
283059
def get_groupnames(self, hostgroups):
        
        group_names = []
        for hostgroup_id in self.hostgroups:
            hostgroup = hostgroups[hostgroup_id]
            group_names.append(hostgroup.get_name())
        return ','.join(sorted(group_names))
1102373
def names(self):
        """"""
        if getattr(self, 'key', None) is None:
            result = []
        else:
            result = [self.key]
        if hasattr(self, 'aliases'):
            result.extend(self.aliases)
        return result
1224137
def get_cluster_port_names(self, cluster_name):
        
        port_names = list()
        for host_name in self.get_hosts_by_clusters()[cluster_name]:
            port_names.extend(self.get_hosts_by_name(host_name))
        return port_names
1299687
def _get_distinct_hostnames(self):
        
        hostnames = []
        for section in self.sections:
            hostnames.extend(self._group_get_hostnames(section['name']))
        return set(hostnames)
56847
def stage_hub(hub, staging=None):
    
    linknames = []
    if staging is None:
        staging = tempfile.mkdtemp()
    for obj, level in hub.leaves(base.HubComponent, intermediate=True):
        linknames.extend(stage(obj, staging))

    return staging, linknames
1102942
def get_machines(self, origin, hostnames):
        
        hostnames = {
            hostname: True
            for hostname in hostnames
        }
        machines = origin.Machines.read(hostnames=hostnames)
        machines = [
            machine
            for machine in machines
            if hostnames.pop(machine.hostname, False)
        ]
        if len(hostnames) > 0:
            raise CommandError(
                "Unable to find %s %s." % (
                    "machines" if len(hostnames) > 1 else "machine",
                    ','.join(hostnames)))
        return machines
785257
def _get_shards(self):
        
        if self._shards is None:
            endpoints = []
            for endpoint in self.endpoints:
                # We need to remove and http:// prefixes from URLs
                url = urlparse.urlparse(self.endpoints[endpoint])
                endpoints.append("/".join([url.netloc, url.path]))
            self._shards = ",".join(endpoints)
        return self._shards
1061169
@Pure
	public Iterable<BusHub> busHubs() {
		if (this.hubs == null) {
			return Collections.emptyList();
		}
		return Collections.unmodifiableCollection(this.hubs);
	}
1228380
def network_list(self):
        '''
        
        '''
        nt_ks = self.compute_conn
        return [network.__dict__ for network in nt_ks.networks.list()]
1220425
function () {
            var names = [];

            Object.keys(this.smd.services || {}).forEach(function (serviceName) {
                names.push(serviceName);
            });

            return names;
        }
1197969
def get_ssh_subsystem_names(self):
        
        preferred_ssh_subsystem = self.device_params.get("ssh_subsystem_name")
        name_list = [ "netconf", "xmlagent" ]
        if preferred_ssh_subsystem:
            return [ preferred_ssh_subsystem ] + \
                        [ n for n in name_list if n != preferred_ssh_subsystem ]
        else:
            return name_list
1194773
def get_edge_list(self):
        
        edge_objs = list()

        for obj_dict_list in self.obj_dict['edges'].values():
            edge_objs.extend([
                Edge(obj_dict=obj_d)
                for obj_d
                in obj_dict_list])

        return edge_objs
283115
def get_connections(self, data=False):
        
        if data:
            return self._connections
        return list(self._connections.keys())
1078521
def list_networks(full_ids=False):
    
    networks = docker_fabric().networks()
    _format_output_table(networks, NETWORK_COLUMNS, full_ids)
1356615
def names(self) -> [str]:
        
        return sorted([name for name in self.axes_by_sname.keys() if name is not ''])