(self, host_name, host_vars)
return host
See if we have a host with the given specification.
        If we do, update it and return it. If not, create one.
See if we have a host with the given specification.
        If we do, update it and return it. If not, create one.
See if we have a host with the given specification . If we do update it and return it . If not create one .
def _get_or_create_host(self, host_name, host_vars):
        """
        See if we have a host with the given specification.
        If we do, update it and return it. If not, create one.
        """
        host = None
        if host_name in self._hosts:
            host = self._hosts[host_name]
            host.update_variables(host_vars)
        else:
            host = Host(host_name, variables=host_vars)
            self._hosts[host_name] = host
        return host
def _get_or_create_host ( self , host_name , host_vars ) : host = None if host_name in self . _hosts : host = self . _hosts [ host_name ] host . update_variables ( host_vars ) else : host = Host ( host_name , variables = host_vars ) self . _hosts [ host_name ] = host return host