Commit e61ae2cc authored by Balazs Lecz's avatar Balazs Lecz Committed by Michael Hanselmann
Browse files

iallocator: Export node group allocation policy


Signed-off-by: default avatarBalazs Lecz <leczb@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent d2881c71
......@@ -11065,7 +11065,10 @@ class IAllocator(object):
"""
ng = {}
for guuid, gdata in cfg.GetAllNodeGroupsInfo().items():
ng[guuid] = { "name": gdata.name }
ng[guuid] = {
"name": gdata.name,
"alloc_policy": gdata.alloc_policy,
}
return ng
@staticmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment