Skip to content

Commit

Permalink
TRITON-2123 cmon should omit nat zones
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamat committed May 1, 2020
1 parent 7bacab0 commit 0775ea3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ function mapVm(vm, source, cb) {
*/
var has_core_tag = false;
if (vm.tags['smartdc_role'] || vm.tags['manta_role']) {
has_core_tag = true;
if (vm.tags['smartdc_role'] && vm.tags['smartdc_role'] === 'nat') {
err = new Error('do not cache nat zone');
} else {
has_core_tag = true;
}
}
/*
* record manta_role, if any, which will be joined with
Expand Down
4 changes: 2 additions & 2 deletions lib/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright (c) 2019, Joyent, Inc.
* Copyright 2020 Joyent, Inc.
*/

// jsl:ignore
Expand Down Expand Up @@ -56,7 +56,7 @@ function _mapAndCacheVm(vm, source, cache, log, cb) {
*/
if (mErr) {
log.warn({ err: mErr, skippedVm: vm},
'Skipping incomplete vm object');
'Skipping vm object');
cb();
return;
} else {
Expand Down

0 comments on commit 0775ea3

Please sign in to comment.