[mod] remove unused variable

This commit is contained in:
Laurent Peuch 2018-05-10 22:10:35 +02:00
parent 061b6bbcce
commit 4420cc300a

View file

@ -229,8 +229,8 @@ def service_status(names=[]):
# Retrieve service status
try:
ret = subprocess.check_output(status, stderr=subprocess.STDOUT,
shell=True)
subprocess.check_output(status, stderr=subprocess.STDOUT,
shell=True)
except subprocess.CalledProcessError as e:
if 'usage:' in e.output.lower():
logger.warning(m18n.n('service_status_failed', service=name))