diff --git a/maxctrl/lib/list.js b/maxctrl/lib/list.js index e909364b5..cce2253e0 100644 --- a/maxctrl/lib/list.js +++ b/maxctrl/lib/list.js @@ -36,6 +36,14 @@ exports.builder = function(yargs) { return getJson(host, 'servers') .then((res) => { + for (var s of res.data) { + // Show the socket instead of the address + if (!s.attributes.parameters.address && s.attributes.parameters.socket) { + s.attributes.parameters.address = s.attributes.parameters.socket + s.attributes.parameters.port = '' + } + } + // Build a set of unique monitors, flatten it into an array of strings and // filter out any duplicate or undefined values (from servers that aren't // monitored).