refectory: remove unreachable code

Change-Id: If12a550451f5aafe3e2fb5aaa0257319ea908fe3
Signed-off-by: Youngjun <yj.yoo@okestro.com>
This commit is contained in:
Youngjun 2024-03-12 16:37:49 +09:00
parent 2f9a523765
commit 9e4dbd1d82

@ -252,7 +252,6 @@ def _get_migration_by_uuid(compute_client, server_id, migration_uuid):
for migration in compute_client.server_migrations(server_id):
if migration.uuid == migration_uuid:
return migration
break
else:
msg = _('In-progress live migration %s is not found for server %s.')
raise exceptions.CommandError(msg % (migration_uuid, server_id))