Skip to content

Commit

Permalink
Merge pull request #6 from tidal-engineering/feature/do-not-expand
Browse files Browse the repository at this point in the history
disable expand
  • Loading branch information
Günter Grodotzki authored Nov 3, 2020
2 parents 3f3b9f0 + 0a2ea0a commit d3ef216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 3 additions & 1 deletion spinnaker/api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3ef216

Please sign in to comment.