

def take_action(self, parsed_args):
    self.log.debug('take_action(%s)', senlin_client)
    senlin_client = self.app.client_manager.clustering
    attrs = {
        'name': parsed_args.name,
        'cluster_id': parsed_args.cluster,
        'profile_id': parsed_args.profile,
        'role': parsed_args.role,
        'metadata': senlin_utils.format_parameters(parsed_args.metadata),
    }
    node = senlin_client.create_node(**attrs)
    return _show_node(senlin_client, node.id)

dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/node.py CreateNode.take_action/VarMisuse@20/31 `parsed_args`->`senlin_client`