mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-03 01:01:06 +00:00
Fix failing compute tests which use AccessConfigs (#1383)
This commit is contained in:
parent
7e5ce3f679
commit
0a02d8eaef
@ -106,7 +106,7 @@ func expandAccessConfigs(configs []interface{}) []*computeBeta.AccessConfig {
|
||||
Type: "ONE_TO_ONE_NAT",
|
||||
NatIP: data["nat_ip"].(string),
|
||||
}
|
||||
if ptr, ok := data["public_ptr_domain_name"]; ok {
|
||||
if ptr, ok := data["public_ptr_domain_name"]; ok && ptr != "" {
|
||||
acs[i].SetPublicPtr = true
|
||||
acs[i].PublicPtrDomainName = ptr.(string)
|
||||
}
|
||||
|
@ -1125,7 +1125,7 @@ func resourceComputeInstanceUpdate(d *schema.ResourceData, meta interface{}) err
|
||||
Type: "ONE_TO_ONE_NAT",
|
||||
NatIP: d.Get(acPrefix + ".nat_ip").(string),
|
||||
}
|
||||
if ptr, ok := d.GetOk(acPrefix + ".public_ptr_domain_name"); ok {
|
||||
if ptr, ok := d.GetOk(acPrefix + ".public_ptr_domain_name"); ok && ptr != "" {
|
||||
ac.SetPublicPtr = true
|
||||
ac.PublicPtrDomainName = ptr.(string)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user