Merge "Trivial-Fix: Set patch directly on unset_instance_info"

This commit is contained in:
Jenkins 2016-12-28 14:32:12 +00:00 committed by Gerrit Code Review
commit 69ff7725dc

View File

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