From 19aa4a72a4116d601f91faa386f779e409fe53fa Mon Sep 17 00:00:00 2001 From: Justin Riley Date: Mon, 27 Nov 2023 11:55:53 -0500 Subject: [PATCH] fix default RHODS label to use strings This was causing the following error when creating new OpenShift projects: coldfront_plugin_cloud.openshift.ApiException: 400: {"msg":"Unexpected response from OpenShift API: Project in version \"v1\" cannot be handled as a Project: json: cannot unmarshal bool into Go struct field ObjectMeta.metadata.labels of type string"} related: #115 --- src/coldfront_plugin_cloud/openshift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coldfront_plugin_cloud/openshift.py b/src/coldfront_plugin_cloud/openshift.py index 2e9df54..b814fd9 100644 --- a/src/coldfront_plugin_cloud/openshift.py +++ b/src/coldfront_plugin_cloud/openshift.py @@ -151,7 +151,7 @@ def _create_project(self, project_name, project_id): headers = {"Content-type": "application/json"} annotations = {"cf_project_id": str(self.allocation.project_id), "cf_pi": self.allocation.project.pi.username} - labels = {'opendatahub.io/dashboard': True} + labels = {'opendatahub.io/dashboard': "true"} payload = {"displayName": project_name, "annotations": annotations,