From 6bbb8258738869979e43ab27080cb0bb03482d78 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 26 Jul 2022 16:32:58 +0200 Subject: [PATCH] Island: All node keywords should be lowercase --- monkey/monkey_island/cc/services/utils/node_states.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/utils/node_states.py b/monkey/monkey_island/cc/services/utils/node_states.py index cb8024bd2..a4b708bce 100644 --- a/monkey/monkey_island/cc/services/utils/node_states.py +++ b/monkey/monkey_island/cc/services/utils/node_states.py @@ -45,7 +45,9 @@ class NodeStates(Enum): @staticmethod def _is_state_from_keywords(group, keywords) -> bool: group_keywords = group.value.split("_") - return collections.Counter(group_keywords) == collections.Counter(keywords) + return collections.Counter(group_keywords) == collections.Counter( + [word.lower() for word in keywords] + ) class MultipleGroupsFoundException(Exception):