st2client/st2client/commands/action.py
def _get_exclude_attributes(cls, args):
        """
        Retrieve a list of exclude attributes for particular command line arguments.
        """
        exclude_attributes = []

        result_included = False
        trigger_instance_included = False

        for attr in args.attr:
            # Note: We perform startswith check so we correctly detected child attribute properties
            # (e.g. result, result.stdout, result.stderr, etc.)
            if attr.startswith('result'):
                result_included = True

            if attr.startswith('trigger_instance'):
                trigger_instance_included = True

        if not result_included:
            exclude_attributes.append('result')
        if not trigger_instance_included:
            exclude_attributes.append('trigger_instance')

        return exclude_attributes

        Retrieve a list of exclude attributes for particular command line arguments.
        
Retrieve a list of exclude attributes for particular command line arguments.
Retrieve a list of exclude attributes for particular command line arguments .
def _get_exclude_attributes(cls, args):
        exclude_attributes = []
        result_included = False
        trigger_instance_included = False
        for attr in args.attr:
            if attr.startswith('result'):
                result_included = True
            if attr.startswith('trigger_instance'):
                trigger_instance_included = True
        if not result_included:
            exclude_attributes.append('result')
        if not trigger_instance_included:
            exclude_attributes.append('trigger_instance')
        return exclude_attributes
def _get_exclude_attributes ( cls , args ) : exclude_attributes = [ ] result_included = False trigger_instance_included = False for attr in args . attr : if attr . startswith ( 'result' ) : result_included = True if attr . startswith ( 'trigger_instance' ) : trigger_instance_included = True if not result_included : exclude_attributes . append ( 'result' ) if not trigger_instance_included : exclude_attributes . append ( 'trigger_instance' ) return exclude_attributes
Retrieve a list of exclude attributes for particular command line arguments.
Retrieve a list of exclude attributes for particular command line arguments .
"""
        Retrieve a list of exclude attributes for particular command line arguments.
        """ # Note: We perform startswith check so we correctly detected child attribute properties # (e.g. result, result.stdout, result.stderr, etc.)
cls
args