st2client/st2client/commands/action.py
def normalize(name, value):
            """ The desired type is contained in the action meta-data, so we can look that up
                and call the desired "caster" function listed in the "transformer" dict
            """

            # Users can also specify type for each array parameter inside an action metadata
            # (items: type: int for example) and this information is available here so we could
            # also leverage that to cast each array item to the correct type.

            if name in runner.runner_parameters:
                param = runner.runner_parameters[name]
                if 'type' in param and param['type'] in transformer:
                    return transformer[param['type']](value)

            if name in action.parameters:
                param = action.parameters[name]
                if 'type' in param and param['type'] in transformer:
                    return transformer[param['type']](value)
            return value
 The desired type is contained in the action meta-data, so we can look that up
                and call the desired "caster" function listed in the "transformer" dict
            
The desired type is contained in the action meta-data, so we can look that up
and call the desired "caster" function listed in the "transformer" dict
The desired type is contained in the action meta - data so we can look that up and call the desired " caster " function listed in the " transformer " dict
def normalize(name, value):
            if name in runner.runner_parameters:
                param = runner.runner_parameters[name]
                if 'type' in param and param['type'] in transformer:
                    return transformer[param['type']](value)
            if name in action.parameters:
                param = action.parameters[name]
                if 'type' in param and param['type'] in transformer:
                    return transformer[param['type']](value)
            return value
def normalize ( name , value ) : if name in runner . runner_parameters : param = runner . runner_parameters [ name ] if 'type' in param and param [ 'type' ] in transformer : return transformer [ param [ 'type' ] ] ( value ) if name in action . parameters : param = action . parameters [ name ] if 'type' in param and param [ 'type' ] in transformer : return transformer [ param [ 'type' ] ] ( value ) return value
The desired type is contained in the action meta-data, so we can look that up
and call the desired "caster" function listed in the "transformer" dict
The desired type is contained in the action meta - data so we can look that up and call the desired " caster " function listed in the " transformer " dict
""" The desired type is contained in the action meta-data, so we can look that up
                and call the desired "caster" function listed in the "transformer" dict
            """ # Users can also specify type for each array parameter inside an action metadata # (items: type: int for example) and this information is available here so we could # also leverage that to cast each array item to the correct type.
name
value