Skip to content

Commit e82da9b

Browse files
committed
fix(cluster): import generic with json
Signed-off-by: Chris Snow <[email protected]>
1 parent 4209ec8 commit e82da9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hpecp/k8s_cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def import_generic_cluster(
581581
description="K8sClusterController/import_generic_cluster",
582582
data=data,
583583
)
584-
return response.json()
584+
return CaseInsensitiveDict(response.headers)["Location"]
585585

586586
def import_generic_cluster_with_json(self, json):
587587
"""Import a generic k8s cluster.
@@ -605,4 +605,4 @@ def import_generic_cluster_with_json(self, json):
605605
),
606606
data=json,
607607
)
608-
return response.json()
608+
return CaseInsensitiveDict(response.headers)["Location"]

0 commit comments

Comments
 (0)