From eb433ed6c1ec84ccbbcd5c32e858c952270d3ead Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Mon, 29 Mar 2021 13:11:01 -0700 Subject: [PATCH] Switch param values in enable/disable shell commands The shell commands to enable or disable a service should pass the --enable or --disable option following the verb and service name. Closes-Bug: #1900075 Change-Id: I97d868bbd005bc5bc9c71d6ddd6f2b7746dbf18b --- tools/init/init/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/init/init/shell.py b/tools/init/init/shell.py index c8f1b0a..c14a7ae 100644 --- a/tools/init/init/shell.py +++ b/tools/init/init/shell.py @@ -159,7 +159,7 @@ def enable(service: str) -> None: e.g. *rabbit* """ - check('snapctl', 'start', '--enable', 'microstack.{}'.format(service)) + check('snapctl', 'start', 'microstack.{}'.format(service), '--enable') def disable(service: str) -> None: @@ -169,7 +169,7 @@ def disable(service: str) -> None: e.g. *rabbit* """ - check('snapctl', 'stop', '--disable', 'microstack.{}'.format(service)) + check('snapctl', 'stop', 'microstack.{}'.format(service), '--disable') def config_get(*keys):