Opened 7 years ago

Closed 7 years ago

#172 closed defect (fixed)

BATCH_HOST_TRANSLATE should not be mandatory

Reported by: ramonb Owned by: ramonb
Priority: normal Milestone: 1.1.1
Component: jobmond Version: 1.1
Keywords: Cc:
Estimated Number of Hours:

Description

if BATCH_HOST_TRANSLATE is not set, an exception is raised

Traceback (most recent call last):
  File "/usr/sbin/jobmond", line 2180, in <module>
    main()
  File "/usr/sbin/jobmond", line 2095, in main
    if not processArgs( sys.argv[1:] ):
  File "/usr/sbin/jobmond", line 95, in processArgs
    return loadConfig( JOBMOND_CONF )
  File "/usr/sbin/jobmond", line 609, in loadConfig
    BATCH_HOST_TRANSLATE = getlist( cfg.get( 'DEFAULT', 'BATCH_HOST_TRANSLATE' ) )
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'batch_host_translate' in section: 'DEFAULT'

however that setting should be optional

Change History (2)

comment:1 Changed 7 years ago by ramonb

  • Owner changed from somebody to ramonb
  • Status changed from new to assigned

comment:2 Changed 7 years ago by ramonb

  • Resolution set to fixed
  • Status changed from assigned to closed

In 927:

jobmond/jobmond.py:

  • prevent NoOptionError? Exception to occur when BATCH_HOST_TRANSLATE is not set
  • closes #172
Note: See TracTickets for help on using tickets.