Merge branch '2.2' into develop

This commit is contained in:
Markus Mäkelä
2018-07-03 21:13:41 +03:00
41 changed files with 233 additions and 110032 deletions

View File

@ -387,13 +387,15 @@ function getTable(headobj) {
function pingCluster(hosts) {
var promises = []
hosts.forEach(function(i) {
args = {}
args.uri = getUri(i, this.argv.secure, '')
args.json = true
setTlsCerts(args)
promises.push(request(args))
})
if (hosts.length > 1 ) {
hosts.forEach(function(i) {
args = {}
args.uri = getUri(i, this.argv.secure, '')
args.json = true
setTlsCerts(args)
promises.push(request(args))
})
}
return Promise.all(promises)
}