From: Erfan Abdi Date: Thu, 9 Sep 2021 17:04:03 +0000 (+0430) Subject: tools: Fix typo on stop container X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/21b74200865df5042bc1ec7676ce120a919cb209 tools: Fix typo on stop container --- diff --git a/tools/__init__.py b/tools/__init__.py index cdb5cdd..62c2b92 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -64,7 +64,7 @@ def main(): actions.container_manager.start(args) elif args.subaction == "stop": actions.container_manager.stop(args) - if args.subaction == "restart": + elif args.subaction == "restart": actions.container_manager.restart(args) elif args.subaction == "freeze": actions.container_manager.freeze(args) diff --git a/tools/helpers/arguments.py b/tools/helpers/arguments.py index ec4ef7c..8ddd76d 100644 --- a/tools/helpers/arguments.py +++ b/tools/helpers/arguments.py @@ -65,7 +65,7 @@ def arguments_container(subparser): ret = subparser.add_parser("container", help="container controller") sub = ret.add_subparsers(title="subaction", dest="subaction") sub.add_parser("start", help="start container") - sub.add_parser("stop", help="start container") + sub.add_parser("stop", help="stop container") sub.add_parser("restart", help="restart container") sub.add_parser("freeze", help="freeze container") sub.add_parser("unfreeze", help="unfreeze container")