Another minor fix

This commit is contained in:
Anton Beloglazov 2012-10-16 15:47:52 +11:00
parent 08a90cc040
commit 4aeca4ea1d

View File

@ -378,7 +378,8 @@ def execute_underload(config, state, host):
if not placement:
log.info('Nothing to migrate')
hosts_to_deactivate.remove(underloaded_host)
if underloaded_host in hosts_to_deactivate:
hosts_to_deactivate.remove(underloaded_host)
else:
migrate_vms(state['nova'], placement)