This commit is contained in:
William Mantly 2016-05-29 01:05:54 -04:00
parent 7d12414d74
commit cd37c680f0

View File

@ -43,10 +43,11 @@ var workerCreate = function(){
name: 'clw'+workerSnapID+'-'+(Math.random()*100).toString().replace('.',''), name: 'clw'+workerSnapID+'-'+(Math.random()*100).toString().replace('.',''),
image: '17575764' image: '17575764'
}, function(data){ }, function(data){
data = JSON.parse(data);
doapi.dropletSetTag('clworker', data.droplet.id, function(data){ doapi.dropletSetTag('clworker', data.droplet.id, function(data){
setTimeout(function(dopletNewID){ setTimeout(function(dopletNewID){
checkDroplet(dopletNewID) checkDroplet(dopletNewID)
}, 60000, JSON.parse(data).droplet.id); }, 60000, data.droplet.id);
}); });
}); });