Changeset 50f9ca6 in flex_extract.git for Source/Python/Mods/checks.py


Ignore:
Timestamp:
Mar 8, 2020, 2:28:44 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
b1674ed, e0005c9
Parents:
5868d74
Message:

BUGFIX (ticket #263): Corrected installation check for parameters GATEWAY and DESTINATION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/checks.py

    r0f89116 r50f9ca6  
    479479    '''
    480480    if queue in _config.QUEUES_LIST and \
    481             (not gateway or not destination or
    482              not ecuid or not ecgid):
    483         raise ValueError('\nEnvironment variables GATEWAY, DESTINATION, ECUID '
     481            (not ecuid or not ecgid):
     482        raise ValueError('\nEnvironment variables ECUID '
    484483                         'and ECGID were not set properly! \n '
    485484                         'Please check for existence of file "ECMWF_ENV" '
    486485                         'in the run directory!')
     486    elif queue in _config.QUEUES_LIST and \
     487             (not gateway or not destination):
     488        print('WARNING: Parameters GATEWAY and DESTINATION were '
     489              'not properly set for working on ECMWF server. \n'
     490              'There will be no transfer of output files to the '
     491              'local gateway server possible!')
    487492    return
    488493
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG