do not accept stop without instrument or 'all'
This commit is contained in:
2
base.py
2
base.py
@ -264,6 +264,8 @@ class ServiceManager:
|
|||||||
|
|
||||||
def do_stop(self, ins, service=None, *args):
|
def do_stop(self, ins, service=None, *args):
|
||||||
self.get_info()
|
self.get_info()
|
||||||
|
if ins is None:
|
||||||
|
raise ValueError('use stop all if you really want to stop all')
|
||||||
ins_list = self.wildcard(ins)
|
ins_list = self.wildcard(ins)
|
||||||
if ins_list is not None:
|
if ins_list is not None:
|
||||||
return ins_list
|
return ins_list
|
||||||
|
Reference in New Issue
Block a user