Skip to content

Commit

Permalink
name fixing in app actions
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimutant committed Oct 2, 2024
1 parent eb81127 commit 2bf4015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutanix/data_nutanix_calm_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 2bf4015

Please sign in to comment.