Fix multi-host usage of maxctrl
The credentials weren't passed to all the hosts.
This commit is contained in:
@ -494,6 +494,7 @@ function pingCluster(hosts) {
|
|||||||
hosts.forEach(function(i) {
|
hosts.forEach(function(i) {
|
||||||
args = {}
|
args = {}
|
||||||
args.uri = getUri(i, this.argv.secure, '')
|
args.uri = getUri(i, this.argv.secure, '')
|
||||||
|
args.auth = {user: argv.u, pass: argv.p}
|
||||||
args.json = true
|
args.json = true
|
||||||
setTlsCerts(args)
|
setTlsCerts(args)
|
||||||
promises.push(request(args))
|
promises.push(request(args))
|
||||||
|
Reference in New Issue
Block a user