changed to look for the text Saving SvcLogicGraph on successfull upload
Change-Id: Ic672d67e754f4e4566515963506ee00f8991fc04
Issue-ID: CCSDK-238
Signed-off-by: Chinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>
console.log("calling uploadxml. sending to server");
//var successHtmlStr = "<object width='600' height='450' type='text/html' data='" + data.url + "' />";
console.log("calling uploadxml. sending to server");
//var successHtmlStr = "<object width='600' height='450' type='text/html' data='" + data.url + "' />";
- if( data != undefined && data != null && (data.stdout.indexOf('Saving SvcLogicGraph to database') != -1 || data.stderr.indexOf('Saving SvcLogicGraph to database') != -1)){
+ if( data != undefined && data != null && (data.stdout.indexOf('Saving SvcLogicGraph') != -1 || data.stderr.indexOf('Saving SvcLogicGraph') != -1)){
//RED.notify("<strong>Uploaded Successfully</strong>");
//console.dir(data);
var _moduleName = data.module;
//RED.notify("<strong>Uploaded Successfully</strong>");
//console.dir(data);
var _moduleName = data.module;
}
if(stderr && !stdout){
//console.log("stderr:" + stderr);
}
if(stderr && !stdout){
//console.log("stderr:" + stderr);
- if(stderr.indexOf("Saving SvcLogicGraph to database") != -1){
+ if(stderr.indexOf("Saving SvcLogicGraph") != -1){
res.send(200,{'error':error,'stdout' :'','stderr':stderr,"url":dbHost,"module" : moduleName,"rpc" : rpc});
}else{
res.send(500,{'error':error,'stdout' :'','stderr':stderr});
res.send(200,{'error':error,'stdout' :'','stderr':stderr,"url":dbHost,"module" : moduleName,"rpc" : rpc});
}else{
res.send(500,{'error':error,'stdout' :'','stderr':stderr});