Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

OS-1374 don't try to open hostname.net0 when the brand doesn't need it.

  • Loading branch information...
commit 622d09754148ce25c51f5163da9523d375fcde72 1 parent 967dc6e
@joshwilsdon joshwilsdon authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/vm/node_modules/VM.js
View
6 src/vm/node_modules/VM.js
@@ -6681,6 +6681,12 @@ function applyUpdates(oldobj, newobj, payload, callback)
var filename;
var n;
+ if (!BRAND_OPTIONS[newobj.brand].features.write_zone_netfiles) {
+ // this brand doesn't want us writing its net files
+ cb();
+ return;
+ }
+
for (n in newobj.nics) {
n = newobj.nics[n];
Please sign in to comment.
Something went wrong with that request. Please try again.