

def take_action(self, parsed_args):
    self.log.debug('take_action(%s)', parsed_args)
    senlin_client = self.app.client_manager.clustering
    for nid in parsed_args.node:
        try:
            resp = senlin_client.check_node(nid)
        except sdk_exc.ResourceNotFound:
            raise exc.CommandError((_('Node not found: %s') % nid))
        print(('Node check request on node %(nid)s is accepted by action %(action)s.' % {
            'nid': parsed_args,
            'action': resp['action'],
        }))

dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/node.py CheckNode.take_action/VarMisuse@88/163 `nid`->`parsed_args`