#NEWLINE# def mask_secrets( self , value ) : #NEWLINE# #INDENT# from st2common.util import action_db #NEWLINE# result = copy . deepcopy ( value ) #NEWLINE# execution_parameters = value [ 'parameters' ] #NEWLINE# parameters = action_db . get_action_parameters_specs ( action_ref = self . action ) #NEWLINE# secret_parameters = get_secret_parameters ( parameters = parameters ) #NEWLINE# result [ 'parameters' ] = mask_secret_parameters ( parameters = self , secret_parameters = secret_parameters ) #NEWLINE# return result