Browse Source

watcher

master
zeus 4 years ago
parent
commit
e0c0897f19
  1. 7
      swarmlab-app/src/run/app.js

7
swarmlab-app/src/run/app.js

@ -208,9 +208,10 @@ global.pipelines=[];
var resdata = await getpipelines(token,pathfile) var resdata = await getpipelines(token,pathfile)
//console.log('info-------->>>>>>>>>>>> ', JSON.stringify(resdata)); //console.log('info-------->>>>>>>>>>>> ', JSON.stringify(resdata));
//console.log('info----------------------- ', JSON.stringify(resdata.data)); //console.log('info----------------------- ', JSON.stringify(resdata.data));
//resdata.data.pathlogfile = pathfile //resdata.data.pathlogfile = 'test'
resdata.data.pathlogfile = 'test' var resob = {}
var resob = resdata.data resob.pathlogfile = pathfileval
resob.data = resdata.data
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname);
//indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists") //indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")

Loading…
Cancel
Save