Skip to content

Commit

Permalink
Add missing fields to instance template's network_interfaces sc… (#3197)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored Mar 2, 2020
1 parent a972c48 commit f5ef599
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
8 changes: 4 additions & 4 deletions third_party/terraform/resources/resource_compute_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ func resourceComputeInstance() *schema.Resource {
ForceNew: true,
},

"name": {
"network_ip": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
},

"network_ip": {
"name": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,6 @@ func resourceComputeInstanceTemplate() *schema.Resource {
DiffSuppressFunc: compareSelfLinkOrResourceName,
},

"network_ip": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},

"subnetwork": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -267,6 +261,17 @@ func resourceComputeInstanceTemplate() *schema.Resource {
Computed: true,
},

"network_ip": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},

"name": {
Type: schema.TypeString,
Computed: true,
},

"access_config": {
Type: schema.TypeList,
Optional: true,
Expand All @@ -285,6 +290,11 @@ func resourceComputeInstanceTemplate() *schema.Resource {
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"PREMIUM", "STANDARD"}, false),
},
// Possibly configurable- this was added so we don't break if it's inadvertently set
"public_ptr_domain_name": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
Expand Down

0 comments on commit f5ef599

Please sign in to comment.