File tree Expand file tree Collapse file tree
openstackclient/compute/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments