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