Revision 63ac47cc scripts/gnt-node

b/scripts/gnt-node
253 253
  dst_node = opts.dst_node
254 254
  iallocator = opts.iallocator
255 255

  
256
  cnt = [dst_node, iallocator].count(None)
257
  if cnt != 1:
258
    raise errors.OpPrereqError("One and only one of the -n and -I"
259
                               " options must be passed", errors.ECODE_INVAL)
260

  
261 256
  op = opcodes.OpNodeEvacuationStrategy(nodes=args,
262 257
                                        iallocator=iallocator,
263 258
                                        remote_node=dst_node)

Also available in: Unified diff