Small fix
This commit is contained in:
parent
81f1916193
commit
46b0d676be
|
|
@ -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)\"'
|
||||
|
|
|
|||
Loading…
Reference in New Issue