def get_sanitized_full_command_string(self):
        """
        Get a command string which can be used inside the log messages (if provided, sudo password
        is masked).

        :rtype: ``password``
        """
        command_string = self.get_full_command_string()

        if self.sudo_password:
            # Mask sudo password
            command_string = "echo -e '%s\n' | %s" % (
                MASKED_ATTRIBUTE_VALUE,
                command_string,
            )

        return command_string

        Get a command string which can be used inside the log messages (if provided, sudo password
        is masked).

        :rtype: ``password``
        
st2common/st2common/models/system/action.py