def clear_redis(self, variable, clear_type):
        """Delete Redis data for provided variable.

        Args:
            variable (str): The Redis variable to delete.
            clear_type (str): The type of clear action.
        """
        if variable is None:
            return
        if variable in self._clear_redis_tracker:
            return
        if not re.match(self._vars_match, variable):
            return
        self.log.info('[{}] Deleting redis variable: {}.'.format(clear_type, variable))
        print('Clearing Variables: {}{}{}'.format(c.Style.BRIGHT, c.Fore.MAGENTA, variable))
        self.tcex.playbook.delete(variable)
        self._clear_redis_tracker.append(variable)
def clear_redis ( self , variable , clear_type ) : if variable is None : return if variable in self . _clear_redis_tracker : return if not re . match ( self . _vars_match , variable ) : return self . log . info ( '[{}] Deleting redis variable: {}.' . format ( clear_type , variable ) ) print ( 'Clearing Variables: {}{}{}' . format ( c . Style . BRIGHT , c . Fore . MAGENTA , variable ) ) self . tcex . playbook . delete ( variable ) self . _clear_redis_tracker . append ( variable )
Delete Redis data for provided variable.

        Args:
            variable (str): The Redis variable to delete.
            clear_type (str): The type of clear action.