Browse Source

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
changes/40/783740/1
Billy Olsen 1 month ago
parent
commit
eb433ed6c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tools/init/init/shell.py

+ 2
- 2
tools/init/init/shell.py 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):


Loading…
Cancel
Save