X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=play-sound-status.py;h=77abfd6ef11e73ccf95ff466c0951ac98b658fef;hb=07a9ad5b9492d70bc3be43821a251f2d892a6ece;hp=d0ecf2a33195758d0c2b80296fe846315efdc471;hpb=52d0dd8ee6d93c5a65696b2046cb88d6bbece7f4;p=svn42.git diff --git a/play-sound-status.py b/play-sound-status.py index d0ecf2a..77abfd6 100755 --- a/play-sound-status.py +++ b/play-sound-status.py @@ -197,6 +197,8 @@ def executeAction(action_name, args=[]): return runRemoteCommand(uwscfg.getValue(action_name+"_remote_host"), uwscfg.getValue(action_name+"_remote_shell"), args) elif action_type == "shellcmd": return runShellCommand(cmd=uwscfg.getValue(action_name+"_cmd"), ptimeout=uwscfg.getValue(action_name+"_timeout"), stdinput=uwscfg.getValue(action_name+"_stdinput"), args=args) + elif action_type == "nothing": + return True else: return executeAction(action_type,args) @@ -207,7 +209,7 @@ def playThemeOf(user): if config is None: config=uwscfg.getValue("mapping_default") logging.debug("playThemeOf: action for user %s: %s" % (user,config)) - executeAction(config) + executeAction(config,[]) def popenTimeout1(cmd, pinput, returncode_ok=[0], ptimeout = 20.0, pcheckint = 0.25): logging.debug("popenTimeout1: starting: " + cmd)