Need up-to-date server info before get_empty_hosts

Story: 2003923
Task: #26823

Change-Id: I46817cf24c9d1e6dde989a8a7e9884b4c1a97292
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
This commit is contained in:
Tomi Juvonen 2018-10-01 09:03:04 +03:00
parent 6c884655d2
commit 9b61cb3a06
1 changed files with 1 additions and 0 deletions

View File

@ -550,6 +550,7 @@ class Workflow(BaseWorkflow):
return
# TBD it takes time to have proper infromation updated about free
# capacity. Should make sure instances removed has also VCPUs removed
self.update_server_info()
maintenance_empty_hosts = self.session_data.get_empty_hosts()
if len(maintenance_empty_hosts) == 0: