Skip to content

Commit d3ef216

Browse files
author
Günter Grodotzki
authored
Merge pull request #6 from tidal-engineering/feature/do-not-expand
disable expand
2 parents 3f3b9f0 + 0a2ea0a commit d3ef216

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
"github.com/tidal-engineering/terraform-provider-spinnaker/spinnaker"
54
"github.com/hashicorp/terraform-plugin-sdk/plugin"
65
"github.com/hashicorp/terraform-plugin-sdk/terraform"
6+
"github.com/tidal-engineering/terraform-provider-spinnaker/spinnaker"
77
)
88

99
func main() {

spinnaker/api/application.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import (
1111
)
1212

1313
func GetApplication(client *gate.GatewayClient, applicationName string, dest interface{}) error {
14-
app, resp, err := client.ApplicationControllerApi.GetApplicationUsingGET(client.Context, applicationName, map[string]interface{}{})
14+
app, resp, err := client.ApplicationControllerApi.GetApplicationUsingGET(client.Context, applicationName, map[string]interface{}{
15+
"expand": false,
16+
})
1517
if resp != nil {
1618
if resp != nil && resp.StatusCode == http.StatusNotFound {
1719
return fmt.Errorf("Application '%s' not found\n", applicationName)

0 commit comments

Comments
 (0)