From 516eebd86826bf768e759b9a714d10f256dd950c Mon Sep 17 00:00:00 2001
From: Attila Farkas <x394097@fi.muni.cz>
Date: Fri, 17 Apr 2020 17:31:27 +0200
Subject: [PATCH] fix error in flavor translation

---
 modules/preprocessing.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/preprocessing.py b/modules/preprocessing.py
index 01054bf..b28f3ac 100644
--- a/modules/preprocessing.py
+++ b/modules/preprocessing.py
@@ -45,7 +45,7 @@ def _add_flavors(definitions):
             if "memory" not in host:
                 host["memory"] = FLAVORS[host["flavor"]]["memory"]
             if "cpus" not in host:
-                host["memory"] = FLAVORS[host["flavor"]]["cores"]
+                host["cpus"] = FLAVORS[host["flavor"]]["cores"]
             host.pop("flavor")
 
 
-- 
GitLab