diff --git a/cloudfoundry/structures_app.go b/cloudfoundry/structures_app.go index 879adf093..1a93febaf 100644 --- a/cloudfoundry/structures_app.go +++ b/cloudfoundry/structures_app.go @@ -359,7 +359,12 @@ func AppDeployV3ToResourceData(d *schema.ResourceData, appDeploy v3appdeployers. _ = d.Set("buildpack", bpkg[0]) } } - _ = d.Set(labelsKey, appDeploy.App.Metadata.Labels) + + labels := make(map[string]interface{}) + for labelKey, label := range appDeploy.App.Metadata.Labels { + labels[labelKey] = label.Value + } + _ = d.Set(labelsKey, labels) _ = d.Set("enable_ssh", appDeploy.EnableSSH.Value) _ = d.Set("stopped", appDeploy.App.State == v3Constants.ApplicationStopped)