Skip to content

Commit 5e3ec1b

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix --shared/block-migration options in server migrate command"
2 parents ed8e918 + 694a24c commit 5e3ec1b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -973,15 +973,15 @@ def get_parser(self, prog_name):
973973
migration_group = parser.add_mutually_exclusive_group()
974974
migration_group.add_argument(
975975
'--shared-migration',
976-
dest='shared_migration',
977-
action='store_true',
978-
default=True,
976+
dest='block_migration',
977+
action='store_false',
978+
default=False,
979979
help=_('Perform a shared live migration (default)'),
980980
)
981981
migration_group.add_argument(
982982
'--block-migration',
983-
dest='shared_migration',
984-
action='store_false',
983+
dest='block_migration',
984+
action='store_true',
985985
help=_('Perform a block live migration'),
986986
)
987987
disk_group = parser.add_mutually_exclusive_group()
@@ -1016,9 +1016,9 @@ def take_action(self, parsed_args):
10161016
)
10171017
if parsed_args.live:
10181018
server.live_migrate(
1019-
parsed_args.live,
1020-
parsed_args.shared_migration,
1021-
parsed_args.disk_overcommit,
1019+
host=parsed_args.live,
1020+
block_migration=parsed_args.block_migration,
1021+
disk_over_commit=parsed_args.disk_overcommit,
10221022
)
10231023
else:
10241024
server.migrate()

0 commit comments

Comments
 (0)