(self, new_hosts)
Extends the list of hosts that *MAY* be connected to with more hosts
Extends the list of hosts that *MAY* be connected to with more hosts
Extends the list of hosts that * MAY * be connected to with more hosts
def add_hosts(self, new_hosts):
        """
        Extends the list of hosts that *MAY* be connected to with more hosts
        """
        if type(new_hosts) == list:
            new_hosts = { host.name: host for host in new_hosts }
        self.hosts.update(new_hosts)
def add_hosts ( self , new_hosts ) : if type ( new_hosts ) == list : new_hosts = { host . name : host for host in new_hosts } self . hosts . update ( new_hosts )