#NEWLINE# @ staticmethod #NEWLINE# def _sanitize_command_string( cmd ) : #NEWLINE# #INDENT# '\n        Remove any potentially sensitive information from the command string.\n\n        For now we only mask the values of the sensitive environment variables.\n        ' #NEWLINE# if ( not cmd ) : #NEWLINE# #INDENT# return cmd #NEWLINE# #UNINDENT# result = re . sub ( 'ST2_ACTION_AUTH_TOKEN=(.+?)\\s+?' , ( 'ST2_ACTION_AUTH_TOKEN=%s ' % MASKED_ATTRIBUTE_VALUE ) , cmd ) #NEWLINE# return result