From 767de5b84615f5e2d142015c210fca3646aeddd6 Mon Sep 17 00:00:00 2001 From: Andy Lo-A-Foe Date: Fri, 14 Jul 2023 09:51:54 +0200 Subject: [PATCH] Fix type conversion issue --- cloudfoundry/structures_app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudfoundry/structures_app.go b/cloudfoundry/structures_app.go index 4b1d676f9..6b7608aa4 100644 --- a/cloudfoundry/structures_app.go +++ b/cloudfoundry/structures_app.go @@ -208,12 +208,12 @@ type ResourceChanger interface { // V3 func ResourceDataToAppDeployV3(d *schema.ResourceData) (v3appdeployers.AppDeploy, error) { - labels := d.Get(labelsKey).(map[string]types.NullString) + labels := d.Get(labelsKey).(map[string]interface{}) metadata := resources.Metadata{ Labels: map[string]types.NullString{}, } for labelKey, label := range labels { - metadata.Labels[labelKey] = label + metadata.Labels[labelKey] = label.(types.NullString) } stateAsk := v3Constants.ApplicationStarted