Skip to content

Commit

Permalink
Support for deleting the service upon destrory (#219)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and Ty Larrabee committed Oct 10, 2019
1 parent f2e4a08 commit 11538f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/appengine_standard_app_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ func GetAppEngineStandardAppVersionApiObject(d TerraformResourceData, config *Co
} else if v, ok := d.GetOkExists("entrypoint"); !isEmptyValue(reflect.ValueOf(entrypointProp)) && (ok || !reflect.DeepEqual(v, entrypointProp)) {
obj["entrypoint"] = entrypointProp
}
instanceClassProp, err := expandAppEngineStandardAppVersionInstanceClass(d.Get("instance_class"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("instance_class"); !isEmptyValue(reflect.ValueOf(instanceClassProp)) && (ok || !reflect.DeepEqual(v, instanceClassProp)) {
obj["instanceClass"] = instanceClassProp
}

return obj, nil
}
Expand Down Expand Up @@ -483,3 +489,7 @@ func expandAppEngineStandardAppVersionEntrypoint(v interface{}, d TerraformResou
func expandAppEngineStandardAppVersionEntrypointShell(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandAppEngineStandardAppVersionInstanceClass(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

0 comments on commit 11538f8

Please sign in to comment.