HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-devel] condor_config_val and the "you must change" entry



It would be nice if condor_config_val still worked even if there is an 
entry marked "You must change this":

nighthawk(1)% setenv _CONDOR_FOO YOU_MUST_CHANGE_THIS_INVALID_CONDOR_CONFIGURATION_VALUE
nighthawk(2)% condor_config_val foo
ERROR "The following configuration macros appear to contain default values that must be changed before Condor will run.  These macros are:
   foo (found on line -1 of <Environment>)
" at line 223 in file condor_config.C
nighthawk(3)% echo $?
4

Could config() take some sort of parameter that says "Don't EXCEPT if
something must be changed", so condor_config_val could still work even
if the daemons would refuse to run?

(If you want to write a wrapper script that validates configuration files,
and reports errors if something is wrong, it's a pain to do right now, 
since you can't look at anything but the invalid ones right now, and the
exit code is EXCEPT, not anything custom)

-Erik