Small fix

This commit is contained in:
Stefan Weijers 2021-07-25 19:43:33 +02:00
parent 81f1916193
commit 46b0d676be
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ from config import bcolors,env
def genLine(name, status, time):
if status == 'active': return '[' + name + '] [' + bcolors.EMPTY + '' + bcolors.RESET + '] [' + bcolors.EMPTY + time + bcolors.RESET + ']'
if status == 'inactive': return '[' + name + '] [' + bcolors.FULL + '' + bcolors.RESET + '] [' + bcolors.FULL + 'N/A' + bcolors.RESET + ']'
if status == 'inactive': return '[' + name + '] [' + bcolors.FULL + '' + bcolors.RESET + '] [' + bcolors.FULL + 'N/A' + bcolors.RESET + ']'
statuscmd = 'systemctl is-active {}'
timecmd = 'systemctl status {} | grep -Po \".*; \K(.*)(?= ago)\"'