mirror of https://gitee.com/bigwinds/arangodb
only print endpoints if present
This commit is contained in:
parent
8e44bc80a5
commit
d1db2ac3ca
|
@ -25,7 +25,9 @@ function main (argv) {
|
|||
j--;
|
||||
}
|
||||
var l = r.runInfo[j];
|
||||
for (i = 0;i < l.endpoints.length;i++) {
|
||||
print(" " + l.roles[i] + ": " + l.endpoints[i]);
|
||||
if (l.endpoints) {
|
||||
for (i = 0; i < l.endpoints.length;i++) {
|
||||
print(" " + l.roles[i] + ": " + l.endpoints[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue