fulltext/agent/consumer.py
def update_secrets(self) -> bool:
        """Update any secrets that are out of date."""
        got_new_secrets = False
        for key, value in self._secrets.yield_secrets():
            if self._config.get(key) != value:
                got_new_secrets = True
            self._config[key] = value
            os.environ[key] = str(value)
        self._access_key = self._config.get('AWS_ACCESS_KEY_ID')
        self._secret_key = self._config.get('AWS_SECRET_ACCESS_KEY')
        if got_new_secrets:
            logger.debug('Got new secrets')
        return got_new_secrets
Update any secrets that are out of date.
Update any secrets that are out of date.
Update any secrets that are out of date .
def update_secrets(self) -> bool:
        got_new_secrets = False
        for key, value in self._secrets.yield_secrets():
            if self._config.get(key) != value:
                got_new_secrets = True
            self._config[key] = value
            os.environ[key] = str(value)
        self._access_key = self._config.get('AWS_ACCESS_KEY_ID')
        self._secret_key = self._config.get('AWS_SECRET_ACCESS_KEY')
        if got_new_secrets:
            logger.debug('Got new secrets')
        return got_new_secrets
def update_secrets ( self ) -> bool : got_new_secrets = False for key , value in self . _secrets . yield_secrets ( ) : if self . _config . get ( key ) != value : got_new_secrets = True self . _config [ key ] = value os . environ [ key ] = str ( value ) self . _access_key = self . _config . get ( 'AWS_ACCESS_KEY_ID' ) self . _secret_key = self . _config . get ( 'AWS_SECRET_ACCESS_KEY' ) if got_new_secrets : logger . debug ( 'Got new secrets' ) return got_new_secrets
Update any secrets that are out of date.
Update any secrets that are out of date .
"""Update any secrets that are out of date."""
self