From f90405211124d4b2446a3d64723880d43a82a75e Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 10 Oct 2017 20:15:49 -0400 Subject: [PATCH] ...we don't need to restart for ls operations --- mumble/usermgmt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mumble/usermgmt.py b/mumble/usermgmt.py index 71836af..3c5f0fb 100755 --- a/mumble/usermgmt.py +++ b/mumble/usermgmt.py @@ -302,8 +302,9 @@ class Manager(object): def close(self): self.conn.close() - _cmd = ['systemctl', 'restart', 'murmur'] - subprocess.run(_cmd) + if self.args['operation'] in ('add', 'rm', 'edit'): + _cmd = ['systemctl', 'restart', 'murmur'] + subprocess.run(_cmd) return() def parseArgs():