From ad01026dd15510b3f6db63757194ea042d9c8292 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 10 Dec 2007 21:05:44 +0000 Subject: [PATCH] [project @ Require a resource for JIDs that are used for XML-RPC messages] obviously this requires a version of benderjab that has that feature added --- gaworkflow/copier.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gaworkflow/copier.py b/gaworkflow/copier.py index 265e780..0e10aa0 100644 --- a/gaworkflow/copier.py +++ b/gaworkflow/copier.py @@ -151,7 +151,14 @@ class CopierBot(rpc.XmlRpcBot): self.rsync = rsync(source, destination, password) self.notify_users = self._parse_user_list(self.cfg['notify_users']) - self.notify_runner = self._parse_user_list(self.cfg['notify_runner']) + try: + self.notify_runner = \ + self._parse_user_list(self.cfg['notify_runner'], + require_resource=True) + except bot.JIDMissingResource: + msg = 'need a full jabber ID + resource for xml-rpc destinations' + logging.FATAL(msg) + raise bot.JIDMissingResource(msg) def startCopy(self, *args): """ -- 2.30.2