]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Added 2 error codes for supporting raw cloud-init data in VM customization.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:36:59 +0000 (09:36 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 22 Feb 2021 17:36:59 +0000 (09:36 -0800)
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.

open-vm-tools/lib/include/vmware/guestrpc/deploypkg.h

index 8953e0976c326247f323581bd49949f5582aab38..f9e9f042b11278c682fcc903fd8df38fed68bbbc 100644 (file)
@@ -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"