/*********************************************************
- * Copyright (C) 2006-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2022 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
static const int CUST_NETWORK_ERROR = 254;
static const int CUST_NIC_ERROR = 253;
static const int CUST_DNS_ERROR = 252;
+static const int CUST_SCRIPT_DISABLED_ERROR = 6;
// the error code to use cloudinit workflow
typedef enum USE_CLOUDINIT_ERROR_CODE {
SetCustomizationStatusInVmx(TOOLSDEPLOYPKG_RUNNING,
GUESTCUST_EVENT_NETWORK_SETUP_FAILED,
NULL);
+ } else if (deploymentResult == CUST_SCRIPT_DISABLED_ERROR) {
+ sLog(log_info,
+ "Setting custom script disabled error status in vmx.");
+ SetCustomizationStatusInVmx(TOOLSDEPLOYPKG_RUNNING,
+ TOOLSDEPLOYPKG_ERROR_CUST_SCRIPT_DISABLED, NULL);
} else {
sLog(log_info, "Setting '%s' error status in vmx.",
deploymentResult == CUST_GENERIC_ERROR ? "generic" : "unknown");