

def take_action(self, parsed_args):
    self.log.debug('take_action(%s)', parsed_args)
    senlin_client = self.app.client_manager.clustering
    node = senlin_client.find_node(parsed_args.node)
    if (node is None):
        raise exc.CommandError((_('Node not found: %s') % parsed_args.node))
    attrs = {
        'name': parsed_args.name,
        'role': parsed_args.role,
        'profile_id': parsed_args.profile,
        'metadata': senlin_utils.format_parameters(parsed_args.metadata),
    }
    senlin_client.update_node(node.id, **attrs)
    return _show_node(parsed_args, node.id)

dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/node.py UpdateNode.take_action/VarMisuse@125/197 `senlin_client`->`parsed_args`