From 793c2de87361f95818a7ac85f363efe50da0b64d Mon Sep 17 00:00:00 2001 From: bruceybian <49861427+bruceybian@users.noreply.github.com> Date: Wed, 28 Feb 2024 09:23:55 +0800 Subject: [PATCH] feat(tke): [116078551]add lan_ip field assignment (#2541) * add lan_ip field assignment * add changelog 2541.txt --- .changelog/2541.txt | 3 +++ .../services/tke/data_source_tc_kubernetes_clusters.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/2541.txt diff --git a/.changelog/2541.txt b/.changelog/2541.txt new file mode 100644 index 0000000000..be67487a9f --- /dev/null +++ b/.changelog/2541.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +datasource/tencentcloud_kubernetes_clusters: Fix `lan_ip` field return value +``` \ No newline at end of file diff --git a/tencentcloud/services/tke/data_source_tc_kubernetes_clusters.go b/tencentcloud/services/tke/data_source_tc_kubernetes_clusters.go index 5bace9b14d..aa860f0e8e 100644 --- a/tencentcloud/services/tke/data_source_tc_kubernetes_clusters.go +++ b/tencentcloud/services/tke/data_source_tc_kubernetes_clusters.go @@ -361,6 +361,7 @@ LOOP: tempMap["instance_role"] = cvm.InstanceRole tempMap["instance_state"] = cvm.InstanceState tempMap["failed_reason"] = cvm.FailedReason + tempMap["lan_ip"] = cvm.LanIp workerInstancesList = append(workerInstancesList, tempMap) }