Merge "compute: Use correct command class for 'show migration'"

This commit is contained in:
Zuul 2022-03-09 13:44:29 +00:00 committed by Gerrit Code Review
commit be1de891ac
1 changed files with 7 additions and 2 deletions

View File

@ -3037,8 +3037,13 @@ class ListMigration(command.Lister):
return self.print_migrations(parsed_args, compute_client, migrations)
class ShowMigration(command.Command):
"""Show a migration for a given server."""
class ShowMigration(command.ShowOne):
"""Show an in-progress live migration for a given server.
Note that it is not possible to show cold migrations or completed
live-migrations. Use 'openstack server migration list' to get details for
these.
"""
def get_parser(self, prog_name):
parser = super().get_parser(prog_name)