From 3d21dda02a7893622347eec91460bb90eb0d23df Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 30 Oct 2023 16:38:16 +0800 Subject: [PATCH] fix(negative): 'CRD' object has no attribute 'cr_api' Signed-off-by: Chin-Ya Huang --- e2e/libs/engine/crd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/libs/engine/crd.py b/e2e/libs/engine/crd.py index cf027bcc8c..8ab7f1e372 100644 --- a/e2e/libs/engine/crd.py +++ b/e2e/libs/engine/crd.py @@ -22,7 +22,7 @@ def get_engine(self, volume_name, node_name): if node_name != "": label_selector.append(f"longhornnode={node_name}") - api_response = self.cr_api.list_namespaced_custom_object( + api_response = self.obj_api.list_namespaced_custom_object( group="longhorn.io", version="v1beta2", namespace="longhorn-system",