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)