Trivial-Fix: Set patch directly on unset_instance_info

Change-Id: I9e2a66a38e457fe78c8e0a2b601c8e39efa4aed6
This commit is contained in:
Zhenguo Niu 2016-12-28 17:36:42 +08:00
parent 17ff537060
commit 632a96ce1d

View File

@ -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)