You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/07/24 17:49:16 UTC
svn commit: r1506601 -
/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py
Author: challngr
Date: Wed Jul 24 15:49:16 2013
New Revision: 1506601
URL: http://svn.apache.org/r1506601
Log:
UIMA-3081 Don't check nodepools if they aren't configured!
Modified:
uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py?rev=1506601&r1=1506600&r2=1506601&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py Wed Jul 24 15:49:16 2013
@@ -616,8 +616,13 @@ class DuccUtil(DuccBase):
# First make sure that all the nodepools that are declared have definition files
# and that the defined nodes are in some nodelist.
#
- nodepools = classprops.get('scheduling.nodepool').split()
nodepools_ok = True
+
+ nplist = classprops.get('scheduling.nodepool')
+ if ( nplist == None ):
+ return nodepools_ok
+
+ nodepools = nplist.split()
for np in nodepools:
npkey = 'scheduling.nodepool.' + np
npfilename = classprops.get(npkey)