Skip to content

Commit

Permalink
Fix type conversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Jul 14, 2023
1 parent 189ed40 commit 767de5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudfoundry/structures_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 767de5b

Please sign in to comment.