changed the text to look for on success upload 73/41973/1
authorChinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>
Tue, 10 Apr 2018 18:17:44 +0000 (18:17 +0000)
committerChinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>
Tue, 10 Apr 2018 18:23:06 +0000 (18:23 +0000)
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>
dgbuilder/nodes/dge/dgemain/dgstart.html
dgbuilder/nodes/dge/dgemain/dgstart.js

index 9caa841..a203a44 100644 (file)
@@ -989,7 +989,7 @@ function showDgStartGenerateXmlStatus(){
                                        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;
index f2b4815..e55c827 100644 (file)
@@ -250,7 +250,7 @@ function uploadDG(filePath,moduleName,rpc,res){
                        }
                        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});