diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-06-13 12:44:04 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-06-13 12:44:04 +0200 |
commit | e36189f8ba98d8a1b254a8dd300f59d5c12a9430 (patch) | |
tree | e815229b91e78a13cc96ec7fc3b18015b9544389 /rumba/prototypes/irati_templates.py | |
parent | 457977f337a47caddf8788e1d4e1d1736f2a6ccb (diff) | |
download | rumba-e36189f8ba98d8a1b254a8dd300f59d5c12a9430.tar.gz rumba-e36189f8ba98d8a1b254a8dd300f59d5c12a9430.zip |
IRATI: added per-node policy support, and revamped policy data model.
additional:
+ fixed small bug rlated to vhost checking in qemu.
+ example scripts now correctly use policies.
Diffstat (limited to 'rumba/prototypes/irati_templates.py')
-rw-r--r-- | rumba/prototypes/irati_templates.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/prototypes/irati_templates.py b/rumba/prototypes/irati_templates.py index b8d9788..2a5c0f0 100644 --- a/rumba/prototypes/irati_templates.py +++ b/rumba/prototypes/irati_templates.py @@ -238,7 +238,7 @@ def ps_set(d, k, v, parms): if d[k]["name"] == v and "parameters" in d[k]: cur_names = [p["name"] for p in d[k]["parameters"]] for p in parms: - name, value = p.split('=') + name, value = p if name in cur_names: for i in range(len(d[k]["parameters"])): if d[k]["parameters"][i]["name"] == name: @@ -249,7 +249,7 @@ def ps_set(d, k, v, parms): elif len(parms) > 0: d[k]["parameters"] = [ - {'name': p.split('=')[0], 'value': p.split('=')[1]} + {'name': p[0], 'value': p[1]} for p in parms] d[k]["name"] = v |