Revision 783a6c0b lib/cmdlib.py

b/lib/cmdlib.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
234 234

  
235 235
#: the migration type (live/non-live)
236 236
_PMigrationLive = ("live", None, _TOr(_TNone,
237
                                      _TElemOf(constants.HT_MIGRATION_TYPES)))
237
                                      _TElemOf(constants.HT_MIGRATION_MODES)))
238 238

  
239 239

  
240 240
# End types
......
5822 5822
    if self.lu.op.live is None:
5823 5823
      # read the default value from the hypervisor
5824 5824
      i_hv = self.cfg.GetClusterInfo().FillHV(instance, skip_globals=False)
5825
      self.lu.op.live = i_hv[constants.HV_MIGRATION_TYPE]
5825
      self.lu.op.live = i_hv[constants.HV_MIGRATION_MODE]
5826 5826

  
5827 5827
    self.live = self.lu.op.live == constants.HT_MIGRATION_LIVE
5828 5828

  

Also available in: Unified diff