Merge "Fix node-inject-nmi to pass an empty body"

This commit is contained in:
Jenkins
2017-01-24 12:45:58 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -1221,7 +1221,7 @@ class NodeManagerTest(testtools.TestCase):
self.mgr.inject_nmi(NODE1['uuid'])
expect = [
('PUT', '/v1/nodes/%s/management/inject_nmi' % NODE1['uuid'],
{}, None),
{}, {}),
]
self.assertEqual(expect, self.api.calls)

View File

@@ -425,7 +425,7 @@ class NodeManager(base.CreateManager):
def inject_nmi(self, node_uuid):
path = "%s/management/inject_nmi" % node_uuid
return self.update(path, None, http_method='PUT')
return self.update(path, {}, http_method='PUT')
def get_supported_boot_devices(self, node_uuid):
path = "%s/management/boot_device/supported" % node_uuid