Skip to content

Commit

Permalink
fix default RHODS label to use strings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jtriley committed Nov 27, 2023
1 parent 3ac55af commit 19aa4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coldfront_plugin_cloud/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 19aa4a7

Please sign in to comment.