You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by bu...@apache.org on 2016/07/05 18:19:47 UTC

svn commit: r1751516 - /uima/uima-ducc/trunk/src/main/admin/check_ducc

Author: burn
Date: Tue Jul  5 18:19:47 2016
New Revision: 1751516

URL: http://svn.apache.org/viewvc?rev=1751516&view=rev
Log:
UIMA-4994 Only restrict explicit invocations of check_ducc to head-only

Modified:
    uima/uima-ducc/trunk/src/main/admin/check_ducc

Modified: uima/uima-ducc/trunk/src/main/admin/check_ducc
URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/src/main/admin/check_ducc?rev=1751516&r1=1751515&r2=1751516&view=diff
==============================================================================
--- uima/uima-ducc/trunk/src/main/admin/check_ducc (original)
+++ uima/uima-ducc/trunk/src/main/admin/check_ducc Tue Jul  5 18:19:47 2016
@@ -196,8 +196,6 @@ class CheckDucc(DuccUtil):
     
     def main(self, argv):
 
-        self.verify_head()
-
         try:
             opts, args = getopt.getopt(argv, 'cikn:opqx:h?v', ['configuration', 'nodelist=', 'int', 'quit', 'kill', 'pids', 'verbose', 'nothreading', ])
         except:
@@ -259,6 +257,9 @@ class CheckDucc(DuccUtil):
             self.validate(checkdate)
             return
 
+        # When called directly must be from the head node
+        self.verify_head()
+
         self.set_duccling_version()
 
         os.system('cat ' + self.DUCC_HOME + '/state/duccling.version')