style fix + TODO list
This commit is contained in:
parent
b1d44b5582
commit
24d9df968e
2 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,7 @@ class PluginThread(threading.Thread):
|
|||
def main(self):
|
||||
random.shuffle(self.hosts)
|
||||
for host in self.hosts:
|
||||
fping = 'fping -q -c1 -t' + self.timeout + ' ' + host + ' &>/dev/null'
|
||||
fping = 'fping -qct' + self.timeout + ' ' + host + ' &>/dev/null'
|
||||
response = os.system(fping)
|
||||
if response == 0:
|
||||
self.format_status('on')
|
||||
|
|
4
vdstatus
4
vdstatus
|
@ -1,4 +1,8 @@
|
|||
#!/usr/bin/python3 -u
|
||||
# TODO:
|
||||
# * handle SIGINT properly
|
||||
# * add documentation / comments
|
||||
# * add a dummy plugin to use as a starting point
|
||||
from sys import argv
|
||||
import argparse
|
||||
import configparser
|
||||
|
|
Loading…
Reference in a new issue