From 00f8657e0995068a38e6d30d2aa6fc1caaf47e41 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Tue, 2 Feb 2021 18:43:39 +0100 Subject: [PATCH] revert to python 3.5 --- hbc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hbc b/hbc index 4215b35..89fc2f0 100755 --- a/hbc +++ b/hbc @@ -442,10 +442,11 @@ msgboot={} home=os.environ['HOME'] configfile="%s/.hbrc" % home cmdargs = [] +iam=socket.gethostname() try: - optlist, args = getopt.getopt(sys.argv[1:], 'bc:dhm:v') + optlist, args = getopt.getopt(sys.argv[1:], 'bc:dhm:n:v') except: helpflag=True @@ -464,6 +465,9 @@ for o,a in optlist: msgboot['service'] = "service" msgboot['msg'] = a msgonly=True + elif o == '-n': + iam=a + cmdargs += [o, a] elif o == '-v': verbose=True cmdargs += [o] @@ -501,7 +505,6 @@ reportstrict={True|False} hb_port=PORT interval=INTERVAL hb_hosts=[] -iam=socket.gethostname() try: f=open(configfile,"r")