Revision 473d87a3 lib/masterd/iallocator.py
b/lib/masterd/iallocator.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2012 Google Inc. |
|
4 |
# Copyright (C) 2012, 2013 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 |
... | ... | |
25 | 25 |
from ganeti import constants |
26 | 26 |
from ganeti import errors |
27 | 27 |
from ganeti import ht |
28 |
from ganeti import objectutils
|
|
28 |
from ganeti import outils |
|
29 | 29 |
from ganeti import opcodes |
30 | 30 |
from ganeti import rpc |
31 | 31 |
from ganeti import serializer |
... | ... | |
60 | 60 |
_INST_NAME = ("name", ht.TNonEmptyString) |
61 | 61 |
|
62 | 62 |
|
63 |
class _AutoReqParam(objectutils.AutoSlots):
|
|
63 |
class _AutoReqParam(outils.AutoSlots): |
|
64 | 64 |
"""Meta class for request definitions. |
65 | 65 |
|
66 | 66 |
""" |
... | ... | |
73 | 73 |
return [slot for (slot, _) in params] |
74 | 74 |
|
75 | 75 |
|
76 |
class IARequestBase(objectutils.ValidatedSlots):
|
|
76 |
class IARequestBase(outils.ValidatedSlots): |
|
77 | 77 |
"""A generic IAllocator request object. |
78 | 78 |
|
79 | 79 |
""" |
... | ... | |
92 | 92 |
REQ_PARAMS attribute for this class. |
93 | 93 |
|
94 | 94 |
""" |
95 |
objectutils.ValidatedSlots.__init__(self, **kwargs)
|
|
95 |
outils.ValidatedSlots.__init__(self, **kwargs) |
|
96 | 96 |
|
97 | 97 |
self.Validate() |
98 | 98 |
|
Also available in: Unified diff