avoid ironic errs
Change-Id: I5ef9e1452ff91ea48bbda6f766fa6be3feaf394a Signed-off-by: Zhou Ya <zhou.ya@zte.com.cn>
This commit is contained in:
@@ -354,12 +354,7 @@ class Controller(object):
|
||||
orig_config_set_id)
|
||||
except exception.Forbidden as e:
|
||||
LOG.info(e)
|
||||
|
||||
# delete ironic host by mac
|
||||
if host_interface:
|
||||
min_mac = utils.get_host_min_mac(host_interface)
|
||||
self.ironicclient.physical_node.get(min_mac)
|
||||
self.ironicclient.physical_node.delete(min_mac)
|
||||
# TODO delete ironic host by mac
|
||||
return dict(host=deleted_host)
|
||||
except exception.ForbiddenPublicImage:
|
||||
msg = _LI("Delete denied for public host %(id)s") % {'id': id}
|
||||
|
||||
Reference in New Issue
Block a user