diff --git a/CHANGES.md b/CHANGES.md index 98d2c81..6d8b6e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # sdc (SDC ops core zone) Changelog +## 1.8.6 + +- TRITON-2112 update sdc-events to exclude virtual servers + ## 1.8.5 - TRITON-2111 update sdc-events to include volapi logs diff --git a/lib/sdc-events.js b/lib/sdc-events.js index 0f73f41..b997bee 100755 --- a/lib/sdc-events.js +++ b/lib/sdc-events.js @@ -1030,9 +1030,12 @@ function main() { }, function getNodes(ctx, next) { - CNAPI.listServers(function (err, servers) { + CNAPI.listServers({extras: 'sysinfo'}, function (err, servers) { ctx.nodes = servers.filter(function (server) { - return server.status === 'running' && server.setup; + var isVirtualServer = server.sysinfo && + server.sysinfo['System Type'] === 'Virtual'; + return server.status === 'running' && server.setup && + !isVirtualServer; }); ctx.nodeFromUuid = []; ctx.nodeFromHostname = []; diff --git a/package.json b/package.json index 97c5b53..f326774 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sdc", "description": "SmartDataCenter 'sdc' zone to hold ops/admin tools", - "version": "1.8.5", + "version": "1.8.6", "author": "Joyent (joyent.com)", "private": true, "dependencies": {