IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2008, 3:17:15 PM (18 years ago)
Author:
eugene
Message:

xxUser, xxSite, xxSystem to user,site,system and complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080219/psModules/src/config/pmConfigCommand.c

    r16542 r16578  
    1313    PS_ASSERT_PTR_NON_NULL(command, false);
    1414    PS_ASSERT_PTR_NON_NULL(config, false);
    15     PS_ASSERT_PTR_NON_NULL(config->xxSite, false);
     15    PS_ASSERT_PTR_NON_NULL(config->complete, false);
    1616
    1717    bool mdok;                          // Status of MD lookup
    18     const char *dbserver = psMetadataLookupStr(&mdok, config->xxSite, "DBSERVER"); // Database server
     18    const char *dbserver = psMetadataLookupStr(&mdok, config->complete, "DBSERVER"); // Database server
    1919    if (!mdok || strlen(dbserver) == 0) {
    2020        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBSERVER in site configuration.\n");
    2121        return false;
    2222    }
    23     const char *dbname = psMetadataLookupStr(&mdok, config->xxSite, "DBNAME"); // Database name
     23    const char *dbname = psMetadataLookupStr(&mdok, config->complete, "DBNAME"); // Database name
    2424    if (!mdok || strlen(dbname) == 0) {
    2525        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBNAME in site configuration.\n");
    2626        return false;
    2727    }
    28     const char *dbuser = psMetadataLookupStr(&mdok, config->xxSite, "DBUSER"); // Database user
     28    const char *dbuser = psMetadataLookupStr(&mdok, config->complete, "DBUSER"); // Database user
    2929    if (!mdok || strlen(dbuser) == 0) {
    3030        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBUSER in site configuration.\n");
    3131        return false;
    3232    }
    33     const char *dbpassword = psMetadataLookupStr(&mdok, config->xxSite, "DBPASSWORD"); // Database password
     33    const char *dbpassword = psMetadataLookupStr(&mdok, config->complete, "DBPASSWORD"); // Database password
    3434    if (!mdok || strlen(dbpassword) == 0) {
    3535        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBPASSWORD in site configuration.\n");
Note: See TracChangeset for help on using the changeset viewer.