do not accept stop without instrument or 'all'

This commit is contained in:
l_samenv
2023-08-25 21:07:25 +02:00
parent 1c0ff3a121
commit b4d41a297d

View File

@ -264,6 +264,8 @@ class ServiceManager:
def do_stop(self, ins, service=None, *args):
self.get_info()
if ins is None:
raise ValueError('use stop all if you really want to stop all')
ins_list = self.wildcard(ins)
if ins_list is not None:
return ins_list