

def take_action(self, parsed_args):
    self.log.debug('take_action(%s)', parsed_args)
    senlin_client = self.app.client_manager.clustering
    try:
        res = senlin_client.get_profile_type(parsed_args.type_name)
    except sdk_exc.ResourceNotFound:
        raise exc.CommandError((_('Profile Type not found: %s') % parsed_args.type_name))
    rows = list(six.itervalues(senlin_client))
    columns = list(six.iterkeys(res))
    return (columns, rows)

dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/profile_type.py ProfileTypeShow.take_action/VarMisuse@82/132 `res`->`senlin_client`