tools/PTE/pte-util.js
// find Connection Profile for an org
find Connection Profile for an org
find Connection Profile for an org
function findOrgConnProfile(fileList, orgname) {
    logger.debug('[findOrgConnProfile] orgname(%s), input File list: ', orgname, fileList);
    for (i = 0; i < fileList.length; i++) {
        var cpf = fileList[i];
        var temp = readConfigFile(cpf, 'test-network');
        if (temp['organizations'] && temp['organizations'][orgname]) {
            logger.debug('[findOrgConnProfile] orgname(%s) found File: ', orgname, cpf);
            return temp;
        }
    }
    return null;
}
function findOrgConnProfile ( fileList , orgname ) { logger . debug ( '[findOrgConnProfile] orgname(%s), input File list: ' , orgname , fileList ) ; for ( i = 0 ; i < fileList . length ; i ++ ) { var cpf = fileList [ i ] ; var temp = readConfigFile ( cpf , 'test-network' ) ; if ( temp [ 'organizations' ] && temp [ 'organizations' ] [ orgname ] ) { logger . debug ( '[findOrgConnProfile] orgname(%s) found File: ' , orgname , cpf ) ; return temp ; } } return null ; }
find Connection Profile for an org
find Connection Profile for an org