From 269708cc661b0730e7ef827fb15d697db0570b1e Mon Sep 17 00:00:00 2001 From: Facundo Date: Mon, 14 Mar 2022 23:19:14 -0300 Subject: [PATCH] fix: renamed method not found (#33) --- core/controllers/host.js | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/core/controllers/host.js b/core/controllers/host.js index 37c89830..0ec27489 100644 --- a/core/controllers/host.js +++ b/core/controllers/host.js @@ -235,26 +235,6 @@ const registerAgent = (req, done) => { return done(error) } - /** update agent reported version **/ - //function updateAgentVersion () { - // logger.log('updating agent version') - // host.agent_version = properties.agent_version - // host.last_update = new Date() - // host.save(err => { - // if (err) { - // logger.error(err) - // return - // } - // const topic = TopicsConstants.agent.version - // App.logger.submit(customer.name, topic, { - // hostname, - // organization: customer.name, - // version: host.agent_version - // }) // topic = topics.agent.version - // }) - //} - //updateAgentVersion() - Resource.findOne({ host_id: host._id, type: 'host' @@ -314,12 +294,11 @@ const registerPullAgent = async (input) => { } }) - HostService.provision({ + await HostService.provisioning({ host, resource, customer, - user, - skip_auto_provisioning: input.skip_auto_provisioning + user }) } else { resource = await Resource.findOne({