diff --git a/main.go b/main.go index 119d9da..9f8040d 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/tidal-engineering/terraform-provider-spinnaker/spinnaker" "github.com/hashicorp/terraform-plugin-sdk/plugin" "github.com/hashicorp/terraform-plugin-sdk/terraform" + "github.com/tidal-engineering/terraform-provider-spinnaker/spinnaker" ) func main() { diff --git a/spinnaker/api/application.go b/spinnaker/api/application.go index cdfce9d..31f4fb2 100644 --- a/spinnaker/api/application.go +++ b/spinnaker/api/application.go @@ -11,7 +11,9 @@ import ( ) func GetApplication(client *gate.GatewayClient, applicationName string, dest interface{}) error { - app, resp, err := client.ApplicationControllerApi.GetApplicationUsingGET(client.Context, applicationName, map[string]interface{}{}) + app, resp, err := client.ApplicationControllerApi.GetApplicationUsingGET(client.Context, applicationName, map[string]interface{}{ + "expand": false, + }) if resp != nil { if resp != nil && resp.StatusCode == http.StatusNotFound { return fmt.Errorf("Application '%s' not found\n", applicationName)