Revision 7acbda7b lib/confd/__init__.py
b/lib/confd/__init__.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2009 Google Inc. |
|
4 |
# Copyright (C) 2009, 2012 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 |
|
26 | 26 |
from ganeti import constants |
27 | 27 |
from ganeti import errors |
28 |
from ganeti import ht |
|
28 | 29 |
|
29 | 30 |
|
30 | 31 |
_FOURCC_LEN = 4 |
31 | 32 |
|
32 | 33 |
|
34 |
#: Items in the individual rows of the NodeDrbd query |
|
35 |
_HTNodeDrbdItems = [ht.TString, ht.TInt, ht.TString, |
|
36 |
ht.TString, ht.TString, ht.TString] |
|
37 |
#: Type for the (top-level) result of NodeDrbd query |
|
38 |
HTNodeDrbd = ht.TListOf(ht.TAnd(ht.TList, ht.TIsLength(len(_HTNodeDrbdItems)), |
|
39 |
ht.TItems(_HTNodeDrbdItems))) |
|
40 |
|
|
41 |
|
|
33 | 42 |
def PackMagic(payload): |
34 | 43 |
"""Prepend the confd magic fourcc to a payload. |
35 | 44 |
|
Also available in: Unified diff