Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def compare_labels(node_list, node_type="control"):
try:
label_data[key].append(node[key])
except KeyError:
raise LabelException(f"The label for {key.split('/')[1]}s doesn't seem to be set for all nodes.")
raise LabelException(f"The label for {key.split('/')[1]}s doesn't seem to be set for all {node_type} nodes.")

for label in LABELS:
if len(set(label_data[label])) <= 1:
Expand All @@ -165,7 +165,8 @@ def compare_labels(node_list, node_type="control"):
#
# if node_type == "control":
# raise DistributionException("The distribution of nodes described in the standard couldn't be detected.")
logger.warning("No node distribution could be detected for the worker nodes. "
if node_type == "worker":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces two mistakes:

a) this warning applies to all kinds of nodes (the text in the warning is wrong)
b) you messed up the indentation (see flake8)

logger.warning("No node distribution could be detected for the worker nodes. "
"This produces only a warning, since it is just a recommendation.")


Expand Down
Loading