diff --git a/zunclient/osc/v1/containers.py b/zunclient/osc/v1/containers.py index 7a6ebbb0..35f0739c 100644 --- a/zunclient/osc/v1/containers.py +++ b/zunclient/osc/v1/containers.py @@ -145,7 +145,7 @@ class CreateContainer(command.ShowOne): help='A dictionary to configure volumes mounted inside the ' 'container.') parser.add_argument( - '--rm', + '--auto-remove', dest='auto_remove', action='store_true', default=False, @@ -700,7 +700,7 @@ class RunContainer(command.ShowOne): help='A dictionary to configure volumes mounted inside the ' 'container.') parser.add_argument( - '--rm', + '--auto-remove', dest='auto_remove', action='store_true', default=False, diff --git a/zunclient/v1/containers_shell.py b/zunclient/v1/containers_shell.py index 5d1a02a9..5b9f6a38 100644 --- a/zunclient/v1/containers_shell.py +++ b/zunclient/v1/containers_shell.py @@ -49,7 +49,7 @@ def _show_container(container): @utils.arg('--workdir', metavar='', help='The working directory for commands to run in') -@utils.arg('--rm', +@utils.arg('--auto-remove', action='store_true', help='Automatically remove the container when it exits') @utils.arg('--label', @@ -134,7 +134,7 @@ def do_create(cs, args): opts['memory'] = args.memory opts['cpu'] = args.cpu opts['environment'] = zun_utils.format_args(args.environment) - opts['auto_remove'] = args.rm + opts['auto_remove'] = args.auto_remove opts['workdir'] = args.workdir opts['labels'] = zun_utils.format_args(args.label) opts['image_pull_policy'] = args.image_pull_policy @@ -450,7 +450,7 @@ def do_kill(cs, args): @utils.arg('--workdir', metavar='', help='The working directory for commands to run in') -@utils.arg('--rm', +@utils.arg('--auto-remove', action='store_true', help='Automatically remove the container when it exits') @utils.arg('--label', @@ -536,7 +536,7 @@ def do_run(cs, args): opts['cpu'] = args.cpu opts['environment'] = zun_utils.format_args(args.environment) opts['workdir'] = args.workdir - opts['auto_remove'] = args.rm + opts['auto_remove'] = args.auto_remove opts['labels'] = zun_utils.format_args(args.label) opts['image_pull_policy'] = args.image_pull_policy opts['image_driver'] = args.image_driver