def _get_common_sudo_arguments(self):
        """
        Retrieve a list of flags which are passed to sudo on every invocation.

        :rtype: ``list``
        """
        flags = []

        if self.sudo_password:
            flags.append("-S")

        flags = flags + SUDO_COMMON_OPTIONS

        return flags

        Retrieve a list of flags which are passed to sudo on every invocation.

        :rtype: ``list``
        
st2common/st2common/models/system/paramiko_script_action.py