IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13101


Ignore:
Timestamp:
Apr 30, 2007, 5:53:11 PM (19 years ago)
Author:
jhoblitt
Message:

check the env for NEB_SERVER var
check the conf system for NEB_SERVER instead of NEBULOUS_SERVER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r13097 r13101  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-05-01 03:15:35 $
     6 *  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-05-01 03:53:11 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    11681168
    11691169        bool status = false;
    1170         psString nebulous_server = psMetadataLookupStr(&status, config->site, "NEBULOUS_SERVER");
    1171         if (!status) {
    1172             psError(PM_ERR_CONFIG, true, "failed to lookup config value for NEBULOUS_SERVER.");
    1173             return NULL;
    1174         }
    1175         if (!nebulous_server) {
     1170        psString neb_server = NULL;
     1171
     1172        // check the env first
     1173        neb_server = getenv("NEB_SERVER");
     1174
     1175        // if env isn't set, check the config system
     1176        if (!neb_server) {
     1177            neb_server = psMetadataLookupStr(&status, config->site, "NEB_SERVER");
     1178            if (!status) {
     1179                psError(PM_ERR_CONFIG, true, "failed to lookup config value for NEB_SERVER.");
     1180                return NULL;
     1181            }
     1182        }
     1183
     1184        if (!neb_server) {
    11761185            psError(PM_ERR_CONFIG, true, "Could not determine nebulous server URI.");
    11771186            return NULL;
    11781187        }
    11791188
    1180         nebServer *server = nebServerAlloc(nebulous_server);
     1189        nebServer *server = nebServerAlloc(neb_server);
    11811190        if (!server) {
    11821191            psError(PM_ERR_SYS, true, "failed to create a nebServer object: %s", nebErr(server));
Note: See TracChangeset for help on using the changeset viewer.