mplane_http_transport.js
function info(options , callback){
    options.url  = 'https://'+options.host+':'+options.port+SUPERVISOR_PATH_INFO;
    options.key = ssl_files.readFileContent(options.keyFile);
    options.cert = ssl_files.readFileContent(options.certFile);
    options.ca = ssl_files.readCaChain(options.ca);

    request(options, function (error, response, body) {
        if (!error && response.statusCode == 200) {
            callback(null, JSON.parse(body));
        }else{
            callback(new Error("Error connecting to the supervisor:"+error.toString()) , null);
        }
    });

}
function info(options , callback){
    options.url  = 'https://'+options.host+':'+options.port+SUPERVISOR_PATH_INFO;
    options.key = ssl_files.readFileContent(options.keyFile);
    options.cert = ssl_files.readFileContent(options.certFile);
    options.ca = ssl_files.readCaChain(options.ca);

    request(options, function (error, response, body) {
        if (!error && response.statusCode == 200) {
            callback(null, JSON.parse(body));
        }else{
            callback(new Error("Error connecting to the supervisor:"+error.toString()) , null);
        }
    });

}
function info ( options , callback ) { options . url = 'https://' + options . host + ':' + options . port + SUPERVISOR_PATH_INFO ; options . key = ssl_files . readFileContent ( options . keyFile ) ; options . cert = ssl_files . readFileContent ( options . certFile ) ; options . ca = ssl_files . readCaChain ( options . ca ) ; request ( options , function ( error , response , body ) { if ( ! error && response . statusCode == 200 ) { callback ( null , JSON . parse ( body ) ) ; } else { callback ( new Error ( "Error connecting to the supervisor:" + error . toString ( ) ) , null ) ; } } ) ; }
Reads supervisor informations
Reads supervisor informations