log when set host on maintenance

Change-Id: I44b1db763d3a0ed9eb4c007278c8f131db9b57dd
This commit is contained in:
suzhengwei 2023-06-29 18:54:49 +08:00
parent c6afc1bc8f
commit bad1f2fe6e
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class MasakariManager(manager.Manager):
if host_obj.reserved:
update_data['reserved'] = False
LOG.info("Set host %s on maintenance.", host_name)
host_obj.update(update_data)
host_obj.save()