Skip to content

Commit

Permalink
MANTA-3273 "manta-adm zk fixup" broken with VMs in remote DCs
Browse files Browse the repository at this point in the history
Reviewed by: Dave Pacheco <dap@joyent.com>
Approved by: Dave Pacheco <dap@joyent.com>
  • Loading branch information
Richard Bradley committed Oct 11, 2017
1 parent 8bfc424 commit 0635d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/adm.js
Expand Up @@ -3959,7 +3959,8 @@ maAdm.prototype.auditZkServers = function ()

serverUuid = zkinstance.params['server_uuid'];
if (!self.ma_vms.hasOwnProperty(uuid)) {
if (self.ma_cns[serverUuid] !== null) {
if (self.ma_cns.hasOwnProperty(serverUuid) &&
self.ma_cns[serverUuid] !== null) {
validationErrors.push(new VError(
'nameservice instance "%s": VM appears ' +
'to have been provisioned in this ' +
Expand Down
2 changes: 0 additions & 2 deletions test/tst.zk.js
Expand Up @@ -112,8 +112,6 @@ function runTestCase(testcase, callback)
'server_uuid': server_uuid
};
}
} else {
deployed.cns[server_uuid] = null;
}

deployed.instances[svcid].push({
Expand Down

0 comments on commit 0635d02

Please sign in to comment.