Fix multi-host usage of maxctrl

The credentials weren't passed to all the hosts.
This commit is contained in:
Markus Mäkelä 2020-03-05 22:12:24 +02:00
parent 5b45796da4
commit 318a81121b
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -494,6 +494,7 @@ function pingCluster(hosts) {
hosts.forEach(function(i) {
args = {}
args.uri = getUri(i, this.argv.secure, '')
args.auth = {user: argv.u, pass: argv.p}
args.json = true
setTlsCerts(args)
promises.push(request(args))