From 4036969475f67ec0af64fba6f8939882c4964650 Mon Sep 17 00:00:00 2001 From: Francisco Rivera Date: Sun, 15 Dec 2024 17:37:58 -0300 Subject: [PATCH] fix comparison --- leverage/containers/kubectl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leverage/containers/kubectl.py b/leverage/containers/kubectl.py index 66310f8..926da20 100644 --- a/leverage/containers/kubectl.py +++ b/leverage/containers/kubectl.py @@ -101,7 +101,7 @@ def _scan_clusters(self): try: with open(cluster_file) as cluster_yaml_file: data = ruamel.yaml.safe_load(cluster_yaml_file) - if data.get("type") != MetadataTypes.K8S_CLUSTER: + if data.get("type") != MetadataTypes.K8S_CLUSTER.value: continue except Exception as exc: logger.warning(exc)