Print this page
OS-192 zone_create() warning on headnode

@@ -6408,10 +6408,16 @@
                         ret_val = Z_INSUFFICIENT_SPEC;
         }
 
         if (save) {
                 if (ret_val == Z_OK) {
+                        /*
+                         * If the zone doesn't yet have a debug ID, set one now.
+                         */
+                        if (zonecfg_get_did(handle) == -1)
+                                zonecfg_set_did(handle);
+
                         if ((ret_val = zonecfg_save(handle)) == Z_OK) {
                                 need_to_commit = B_FALSE;
                                 (void) strlcpy(revert_zone, zone,
                                     sizeof (revert_zone));
                         }