Merge "Trivial-Fix: Set patch directly on unset_instance_info"
This commit is contained in:
commit
69ff7725dc
@ -75,9 +75,8 @@ def set_instance_info(ironicclient, instance):
|
|||||||
|
|
||||||
def unset_instance_info(ironicclient, instance):
|
def unset_instance_info(ironicclient, instance):
|
||||||
|
|
||||||
patch = []
|
patch = [{'path': '/instance_info', 'op': 'remove'},
|
||||||
patch.append({'path': '/instance_uuid', 'op': 'remove'})
|
{'path': '/instance_uuid', 'op': 'remove'}]
|
||||||
patch.append({'path': '/instance_info', 'op': 'remove'})
|
|
||||||
|
|
||||||
ironicclient.call("node.update", instance.node_uuid, patch)
|
ironicclient.call("node.update", instance.node_uuid, patch)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user