(self, url)
return _url
Get the request address, build with proxy if necessary
Get the request address, build with proxy if necessary
Get the request address build with proxy if necessary
def _get_request_url(self, url):
        """
        Get the request address, build with proxy if necessary
        """
        parsed = urlparse(url)

        _url = url
        if not (parsed.netloc and parsed.scheme) and is_affirmative(self.instance.get('spark_proxy_enabled', False)):
            _url = urljoin(self.master_address, parsed.path)

        self.log.debug('Request URL returned: %s', _url)
        return _url
def _get_request_url ( self , url ) : parsed = urlparse ( url ) _url = url if not ( parsed . netloc and parsed . scheme ) and is_affirmative ( self . instance . get ( 'spark_proxy_enabled' , False ) ) : _url = urljoin ( self . master_address , parsed . path ) self . log . debug ( 'Request URL returned: %s' , _url ) return _url