From: John Wolfe Date: Mon, 22 Feb 2021 17:36:59 +0000 (-0800) Subject: Added 2 error codes for supporting raw cloud-init data in VM customization. X-Git-Tag: stable-11.3.0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39c9113caae0750342ef6049201f6c8976d8535b;p=thirdparty%2Fopen-vm-tools.git Added 2 error codes for supporting raw cloud-init data in VM customization. Header file updated with errors detected when using raw cloud-init data in guest customization. - cloud-init version is too old to support raw cloud-init data. - cloud-init meta data format is invalid. --- diff --git a/open-vm-tools/lib/include/vmware/guestrpc/deploypkg.h b/open-vm-tools/lib/include/vmware/guestrpc/deploypkg.h index 8953e0976..f9e9f042b 100644 --- a/open-vm-tools/lib/include/vmware/guestrpc/deploypkg.h +++ b/open-vm-tools/lib/include/vmware/guestrpc/deploypkg.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2006-2020 VMware, Inc. All rights reserved. + * Copyright (C) 2006-2021 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 @@ -46,7 +46,11 @@ typedef enum { TOOLSDEPLOYPKG_ERROR_COPY_FAILED, TOOLSDEPLOYPKG_ERROR_DEPLOY_FAILED, TOOLSDEPLOYPKG_ERROR_CUST_SCRIPT_DISABLED, // User defined script is disabled - TOOLSDEPLOYPKG_ERROR_CUST_DISABLED // Guest customization is disabled + TOOLSDEPLOYPKG_ERROR_CUST_DISABLED, // Guest customization is disabled + // cloud-init version is too old to support raw cloud-init data + TOOLSDEPLOYPKG_ERROR_CLOUDINIT_NOT_SUPPORT_RAWDATA, + // cloud-init meta dat is not valid format + TOOLSDEPLOYPKG_ERROR_CLOUDINIT_WRONG_META_FORMAT } ToolsDeployPkgError; #define QUERY_NICS_SUPPORTED "queryNicsSupported"