Skip to content

Commit

Permalink
fix: renamed method not found (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
facugon committed Mar 15, 2022
1 parent 954f8a2 commit 269708c
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions core/controllers/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 269708c

Please sign in to comment.