Skip to content

Commit

Permalink
Merge pull request #260 from NaverCloudPlatform/fix_to_add_regioncode…
Browse files Browse the repository at this point in the history
…_when_disassociate_public_ip

fix_to_add_regioncode_when_disassociate_public_ip
  • Loading branch information
minosmlee authored Mar 2, 2023
2 parents 37a662c + 669a5f0 commit e234065
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ncloud/resource_ncloud_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ func disassociatedClassicPublicIp(config *ProviderConfig, id string) error {
}

func disassociatedVpcPublicIp(config *ProviderConfig, id string) error {
reqParams := &vserver.DisassociatePublicIpFromServerInstanceRequest{PublicIpInstanceNo: ncloud.String(id)}
reqParams := &vserver.DisassociatePublicIpFromServerInstanceRequest{
RegionCode: &config.RegionCode,
PublicIpInstanceNo: ncloud.String(id),
}

logCommonRequest("disassociatedVpcPublicIp", reqParams)

Expand Down

0 comments on commit e234065

Please sign in to comment.