(self)
return master_address
Get the master address from the instance configuration
Get the master address from the instance configuration
Get the master address from the instance configuration
def _get_master_address(self):
        """
        Get the master address from the instance configuration
        """

        master_address = self.instance.get(MASTER_ADDRESS)
        if master_address is None:
            master_address = self.instance.get(DEPRECATED_MASTER_ADDRESS)

            if master_address:
                self.log.warning(
                    'The use of `%s` is deprecated. Please use `%s` instead.', DEPRECATED_MASTER_ADDRESS, MASTER_ADDRESS
                )
            else:
                raise ConfigurationError(
                    'URL for `%s` must be specified in the instance configuration' % MASTER_ADDRESS
                )

        return master_address
def _get_master_address ( self ) : master_address = self . instance . get ( MASTER_ADDRESS ) if master_address is None : master_address = self . instance . get ( DEPRECATED_MASTER_ADDRESS ) if master_address : self . log . warning ( 'The use of `%s` is deprecated. Please use `%s` instead.' , DEPRECATED_MASTER_ADDRESS , MASTER_ADDRESS ) else : raise ConfigurationError ( 'URL for `%s` must be specified in the instance configuration' % MASTER_ADDRESS ) return master_address