Revision 0fbae49a lib/config.py
b/lib/config.py | ||
---|---|---|
43 | 43 |
from ganeti import rpc |
44 | 44 |
from ganeti import objects |
45 | 45 |
from ganeti import serializer |
46 |
from ganeti import uidpool |
|
46 | 47 |
|
47 | 48 |
|
48 | 49 |
_config_lock = locking.SharedLock() |
... | ... | |
1372 | 1373 |
|
1373 | 1374 |
hypervisor_list = fn(cluster.enabled_hypervisors) |
1374 | 1375 |
|
1376 |
uid_pool = uidpool.FormatUidPool(cluster.uid_pool, separator="\n") |
|
1377 |
|
|
1375 | 1378 |
return { |
1376 | 1379 |
constants.SS_CLUSTER_NAME: cluster.cluster_name, |
1377 | 1380 |
constants.SS_CLUSTER_TAGS: cluster_tags, |
... | ... | |
1390 | 1393 |
constants.SS_RELEASE_VERSION: constants.RELEASE_VERSION, |
1391 | 1394 |
constants.SS_HYPERVISOR_LIST: hypervisor_list, |
1392 | 1395 |
constants.SS_MAINTAIN_NODE_HEALTH: str(cluster.maintain_node_health), |
1396 |
constants.SS_UID_POOL: uid_pool, |
|
1393 | 1397 |
} |
1394 | 1398 |
|
1395 | 1399 |
@locking.ssynchronized(_config_lock, shared=1) |
Also available in: Unified diff