Skip to content

Commit

Permalink
Merge pull request #17 from volcengine/user_data_fix
Browse files Browse the repository at this point in the history
bugfix: fix error on current create snat
  • Loading branch information
xuyaming0800 authored Aug 11, 2022
2 parents e309e55 + 790af42 commit cfe925d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.14"
TerraformProviderVersion = "0.0.15"
)
3 changes: 3 additions & 0 deletions volcengine/nat/snat_entry/service_volcengine_snat_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (s *VolcengineSnatEntryService) CreateResource(resourceData *schema.Resourc
Call: ve.SdkCall{
Action: "CreateSnatEntry",
ConvertMode: ve.RequestConvertAll,
LockId: func(d *schema.ResourceData) string {
return d.Get("nat_gateway_id").(string)
},
ExecuteCall: func(d *schema.ResourceData, client *ve.SdkClient, call ve.SdkCall) (*map[string]interface{}, error) {
logger.Debug(logger.ReqFormat, call.Action, call.SdkParam)
return s.Client.NatClient.CreateSnatEntryCommon(call.SdkParam)
Expand Down

0 comments on commit cfe925d

Please sign in to comment.