Revision 8c35561f scripts/gnt-instance

b/scripts/gnt-instance
903 903
                               "--migration-mode options can be passed",
904 904
                               errors.ECODE_INVAL)
905 905
  if not opts.live: # --non-live passed
906
    live = constants.HT_MIGRATION_NONLIVE
906
    mode = constants.HT_MIGRATION_NONLIVE
907 907
  else:
908
    live = opts.migration_mode
908
    mode = opts.migration_mode
909 909

  
910
  op = opcodes.OpMigrateInstance(instance_name=instance_name, live=live,
910
  op = opcodes.OpMigrateInstance(instance_name=instance_name, mode=mode,
911 911
                                 cleanup=opts.cleanup)
912 912
  SubmitOpCode(op, cl=cl, opts=opts)
913 913
  return 0

Also available in: Unified diff