From 2bf4015474bdb42346e5008098ce24785f91c55c Mon Sep 17 00:00:00 2001 From: "abhishek.chaudhary" Date: Wed, 2 Oct 2024 14:04:54 +0530 Subject: [PATCH] name fixing in app actions --- nutanix/data_nutanix_calm_app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nutanix/data_nutanix_calm_app.go b/nutanix/data_nutanix_calm_app.go index 0cfaf3a26..80ba6644f 100644 --- a/nutanix/data_nutanix_calm_app.go +++ b/nutanix/data_nutanix_calm_app.go @@ -324,9 +324,9 @@ func flattenActions(pr map[string]interface{}) []interface{} { if action, ok := action.(map[string]interface{}); ok { actionMap["name"] = func(parts []string) string { if parts[0] == "action" { - return parts[1] + return strings.Join(parts[1:], " ") } - return parts[0] + " " + parts[1] + return strings.Join(parts, " ") }(strings.Split(action["name"].(string), "_")) actionMap["uuid"] = action["uuid"] actionMap["description"] = action["description"]