From: realraum Date: Sat, 8 May 2010 00:12:57 +0000 (+0000) Subject: --debug X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=b2d2d960f57d1520bab492e7b90eb0012d4fdcba;p=svn42.git --debug --- diff --git a/switch-power.py b/switch-power.py index 6b8b9f5..a9ebc29 100755 --- a/switch-power.py +++ b/switch-power.py @@ -15,6 +15,7 @@ import subprocess import types import ConfigParser import datetime +import random import traceback logger = logging.getLogger() @@ -196,7 +197,7 @@ def eventPanic(): switchPower(e[0],e[1]) time.sleep(delay) random.shuffle(lst1) - for rep in lst1: + for id in lst1: switchPower(id,False) time.sleep(1.2) eventPresent()