Revision 783a6c0b lib/hypervisor/hv_base.py
b/lib/hypervisor/hv_base.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 |
... | ... | |
89 | 89 |
REQUIRED_CHECK = (True, None, None, None, None) |
90 | 90 |
|
91 | 91 |
# migration type |
92 |
MIGRATION_TYPE_CHECK = (True, lambda x: x in constants.HT_MIGRATION_TYPES,
|
|
93 |
"invalid migration type", None, None)
|
|
92 |
MIGRATION_MODE_CHECK = (True, lambda x: x in constants.HT_MIGRATION_MODES,
|
|
93 |
"invalid migration mode", None, None)
|
|
94 | 94 |
|
95 | 95 |
|
96 | 96 |
def ParamInSet(required, my_set): |
Also available in: Unified diff