Support updating cluster health status
Cluster health_status_reason is also a dict like the template labels, so we need to handle this in the same way. Change-Id: I0841ef30f568640839746f2223ba0fb621e2005c Task: 39081 Story: 2007242
This commit is contained in:
parent
e6288837d4
commit
df0249024e
@ -79,7 +79,7 @@ def args_array_to_patch(op, attributes):
|
||||
attr = '/' + attr
|
||||
if op in ['add', 'replace']:
|
||||
path, value = split_and_deserialize(attr)
|
||||
if path == "/labels":
|
||||
if path == "/labels" or path == "/health_status_reason":
|
||||
a = []
|
||||
a.append(value)
|
||||
value = str(handle_labels(a))
|
||||
|
Loading…
x
Reference in New Issue
Block a user