Add new disk_templates parameter to instance policy
This is a bit more complex patch, as it requires changing the assumption that all keys in the policy dict points to values that are themselves dicts. Right now we introduce an assumption that any non-dicts are lists, we'll see in the future if this holds or whether we need more complex type checking (manual, yay Python). The patch also does some trivial style changes. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
Showing
- lib/bootstrap.py 1 addition, 2 deletionslib/bootstrap.py
- lib/client/gnt_cluster.py 10 additions, 3 deletionslib/client/gnt_cluster.py
- lib/client/gnt_group.py 1 addition, 0 deletionslib/client/gnt_group.py
- lib/cmdlib.py 41 additions, 23 deletionslib/cmdlib.py
- lib/config.py 10 additions, 3 deletionslib/config.py
- lib/constants.py 4 additions, 1 deletionlib/constants.py
- lib/objects.py 43 additions, 15 deletionslib/objects.py
Loading
Please register or sign in to comment