-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed TestAccNetworkServicesGateway_update (#12749)
- Loading branch information
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
mmv1/templates/terraform/pre_update/network_services_gateway.go.tmpl
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
mmv1/templates/terraform/update_encoder/network_services_gateway.go.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Always force-send some attributes even if they were not modified. This works around extra API-side requirements. | ||
obj["scope"] = d.Get("scope") | ||
if d.Get("type") == "SECURE_WEB_GATEWAY" { | ||
obj["name"] = d.Get("name") | ||
obj["type"] = d.Get("type") | ||
obj["routingMode"] = d.Get("routingMode") | ||
} | ||
return obj, nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters