API: fix node modify
Enable/Disable was not set properly. Note: worker still ignores this setting Change-Id: I4c1dda8f5178ce3166435b05c87f9b7a191fad3c
This commit is contained in:
parent
f44f2b3f95
commit
40f05d47bb
@ -212,7 +212,10 @@ class NodesController(RestController):
|
|||||||
raise ClientSideError('Node ID is not valid')
|
raise ClientSideError('Node ID is not valid')
|
||||||
|
|
||||||
if body.condition != Unset:
|
if body.condition != Unset:
|
||||||
node.condition = body.condition
|
if body.condition == 'DISABLED':
|
||||||
|
node.enabled = 0
|
||||||
|
else:
|
||||||
|
node.enabled = 1
|
||||||
|
|
||||||
lb.status = 'PENDING_UPDATE'
|
lb.status = 'PENDING_UPDATE'
|
||||||
device = session.query(
|
device = session.query(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user