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
This commit is contained in:
Billy Olsen 2021-03-29 13:11:01 -07:00
parent f91270c692
commit eb433ed6c1
1 changed files with 2 additions and 2 deletions

View File

@ -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):