Merge "When host deleted, its status still be "PXE:SUCCESSFUL"."

This commit is contained in:
Jenkins
2017-02-08 03:57:45 +00:00
committed by Gerrit Code Review
6 changed files with 387 additions and 28 deletions

View File

@@ -686,15 +686,6 @@ class Controller(controller.BaseController):
request=req,
content_type="text/plain")
else:
# self.notifier.info('host.delete', host)
params = {}
discover_hosts = registry.get_discover_hosts_detail(
req.context, **params)
for host in discover_hosts:
if host.get('host_id') == id:
LOG.info("delete discover host: %s" % id)
registry.delete_discover_host_metadata(
req.context, host['id'])
return Response(body='', status=200)
@utils.mutating