(self)
return ip
Setup the IP address of the considered container.
Setup the IP address of the considered container.
Setup the IP address of the considered container .
def _setup_ip(self):
        """ Setup the IP address of the considered container. """
        ip = get_ip(self._container)
        if not ip:
            network_wait_timeout = self.options.get("extras", {}).get("network_wait_timeout", 10)
            logger.info('No IP yet, waiting for at most {} seconds...'.format(network_wait_timeout))
            ip = self._wait_for_ip(network_wait_timeout)
        if not ip:
            logger.warning('STILL no IP! Container is up, but probably broken.')
            logger.info('Maybe that restarting it will help? Not trying to provision.')
        return ip
def _setup_ip ( self ) : ip = get_ip ( self . _container ) if not ip : network_wait_timeout = self . options . get ( "extras" , { } ) . get ( "network_wait_timeout" , 10 ) logger . info ( 'No IP yet, waiting for at most {} seconds...' . format ( network_wait_timeout ) ) ip = self . _wait_for_ip ( network_wait_timeout ) if not ip : logger . warning ( 'STILL no IP! Container is up, but probably broken.' ) logger . info ( 'Maybe that restarting it will help? Not trying to provision.' ) return ip