From 9817d3a8ae002fc842b055827b5869c48928898f Mon Sep 17 00:00:00 2001 From: Adam Dyess Date: Fri, 1 Mar 2024 09:27:49 -0600 Subject: [PATCH] workaround issue https://github.com/kubernetes-client/python/issues/2203 --- tests/integration/test_add_k8s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_add_k8s.py b/tests/integration/test_add_k8s.py index d23d20e..e990e84 100644 --- a/tests/integration/test_add_k8s.py +++ b/tests/integration/test_add_k8s.py @@ -9,7 +9,7 @@ async def test_add_k8s(ops_test: OpsTest): try: k8s_cloud = await ops_test.add_k8s(skip_storage=False) - except ConfigException: + except (ConfigException, TypeError): pytest.skip("No Kubernetes config found to add-k8s") k8s_model = await ops_test.track_model(