Skip to content

Commit

Permalink
actually delete instances again!
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan219 committed Jul 5, 2017
1 parent 1095a55 commit 0e61514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/services/cluster-config-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ module.exports = class ClusterConfigService {
log.info('called')
return AutoIsolationConfig.findByIdAndAssert(clusterId)
.tap((cluster) => {
const instancesIds = [cluster.instance.id]
instancesIds.concat(cluster.requestedDependencies.map(dep => dep.instance))
const instancesIds = [cluster.instance.id.toString()]
instancesIds.concat(cluster.requestedDependencies.map(dep => dep.instance.toString()))

return Promise.each(instancesIds, (instanceId) => rabbitMQ.deleteInstance({ instanceId }))
})
Expand Down

0 comments on commit 0e61514

Please sign in to comment.