MXS-1300: Fix minor MaxCtrl bugs

Fixed unresolved promises, wrong resources being requested and enabled
strict mode so unknown arguments are not ignored.
This commit is contained in:
Markus Mäkelä
2017-08-03 09:44:48 +03:00
parent 512c3c018d
commit 3bd13cded6
3 changed files with 7 additions and 5 deletions

View File

@ -193,7 +193,7 @@ exports.builder = function(yargs) {
var promises = []
// Add new monitors
getDifference(src.monitors.data, dest.monitors.data).forEach(function(i) {
promises.push(doAsyncRequest(host, 'servers', null, {method: 'POST', body: {data: i}}))
promises.push(doAsyncRequest(host, 'monitors', null, {method: 'POST', body: {data: i}}))
})
return Promise.all(promises)
})