Fix error message of nova baremetal-node-delete

When execute "nova baremetal-node-delete" command,
below error message is shown:
 ERROR (BadRequest): Command Not supported.
 Please use Ironic command port-create to perform this action. (HTTP 400)

Ironic command corresponds to nova baremetal-node-delete is
not port-create, but node-delete.
This patch set fixes this bug.

Change-Id: I065e1efdce7a82d25d6d68908b0b1c43e6be7000
Closes-bug: #1564872
This commit is contained in:
Yuiko Takada 2016-04-01 21:05:53 +09:00
parent 3cdaa30566
commit f7a46c8d19

@ -131,7 +131,7 @@ class BareMetalNodeController(wsgi.Controller):
@extensions.expected_errors(400)
def delete(self, req, id):
_no_ironic_proxy("port-create")
_no_ironic_proxy("node-delete")
@wsgi.action('add_interface')
@extensions.expected_errors(400)