[Kimchi-devel] [PATCH] [Kimchi 1/2] Add graphics settings merge to template update
Lucio Correia
luciojhc at linux.vnet.ibm.com
Fri Feb 12 15:20:56 UTC 2016
Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
model/templates.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/model/templates.py b/model/templates.py
index 053942a..8a29e02 100644
--- a/model/templates.py
+++ b/model/templates.py
@@ -166,6 +166,13 @@ class TemplateModel(object):
old_t = self.lookup(name)
new_t = copy.copy(old_t)
+ # Merge graphics settings
+ graph_args = params.get('graphics')
+ if graph_args:
+ graphics = dict(new_t['graphics'])
+ graphics.update(graph_args)
+ params['graphics'] = graphics
+
# Merge cpu_info settings
new_cpu_info = params.get('cpu_info')
if new_cpu_info:
--
1.9.1
More information about the Kimchi-devel
mailing list