summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-11 09:54:47 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-11 09:54:47 +0200
commitc3b03417f8bc659087edc85e68a1da0e937cd9d9 (patch)
tree49f09972b5ab8c91c733f07c771f6b16001925ae
parent33fffefd1d39ac20cf9a296dfe667b3520a1ee6b (diff)
Cleaning
-rw-r--r--esds/helpers/platform.py6
-rw-r--r--example/platform.yaml1
2 files changed, 5 insertions, 2 deletions
diff --git a/esds/helpers/platform.py b/esds/helpers/platform.py
index fdbf29e..b7e5637 100644
--- a/esds/helpers/platform.py
+++ b/esds/helpers/platform.py
@@ -137,6 +137,8 @@ class YAMLPlatformFile:
if not str(nodes["count"]).isnumeric():
self.parsing_error("node count should be a number")
self.default["node_count"]=nodes["count"]
+ else:
+ self.parsing_error("node count not provided")
if "implementations" in nodes:
if type(nodes["implementations"]) != list:
self.parsing_error("nodes implementations should be a list of file path")
@@ -155,7 +157,9 @@ class YAMLPlatformFile:
count = len(nodes["implementations"])
if count > 1 and count != self.default["node_count"]:
self.parsing_error("If more than one implementation is specified, each node implementation should be provided ("+str(self.default["node_count"])+" in total)")
-
+ else:
+ self.parsing_error("node implementation not provided")
+
def parse_general(self):
general=self.platform["general"]
diff --git a/example/platform.yaml b/example/platform.yaml
index 5aa65e3..cf8c3f8 100644
--- a/example/platform.yaml
+++ b/example/platform.yaml
@@ -7,7 +7,6 @@ general:
debug: off
interferences: on
-
nodes:
count: 5
implementations: