tools/PTE/pte-util.js
// find all org from Connection Profiles
find all org from Connection Profiles
find all org from Connection Profiles
function findAllOrgFromConnProfile(fileList) {
    var orgList = [];
    for (i = 0; i < fileList.length; i++) {
        var cpf = fileList[i];
        var temp = readConfigFile(cpf, 'test-network');
        if (temp['organizations']) {
            for (var org in temp['organizations']) {
                if ( !(orgList.indexOf(org) > -1) ) {
                     orgList.push(org);
                }
            }
        }
    }
    logger.debug('[findAllOrgFromConnProfile] org list:', orgList);
    return orgList;
}
function findAllOrgFromConnProfile ( fileList ) { var orgList = [ ] ; for ( i = 0 ; i < fileList . length ; i ++ ) { var cpf = fileList [ i ] ; var temp = readConfigFile ( cpf , 'test-network' ) ; if ( temp [ 'organizations' ] ) { for ( var org in temp [ 'organizations' ] ) { if ( ! ( orgList . indexOf ( org ) > - 1 ) ) { orgList . push ( org ) ; } } } } logger . debug ( '[findAllOrgFromConnProfile] org list:' , orgList ) ; return orgList ; }
find all org from Connection Profiles
find all org from Connection Profiles