diff --git a/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_address_reservation.go b/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_address_reservation.go index 0e47ff906..4c1cebca5 100644 --- a/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_address_reservation.go +++ b/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_address_reservation.go @@ -92,6 +92,7 @@ func resourceOPCIPAddressReservationRead(d *schema.ResourceData, meta interface{ d.Set("name", result.Name) d.Set("description", result.Description) d.Set("ip_address_pool", result.IPAddressPool) + d.Set("ip_address", result.IPAddress) d.Set("uri", result.Uri) if err := setStringList(d, "tags", result.Tags); err != nil { diff --git a/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_reservation.go b/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_reservation.go index 2a7ea08bd..5bd6fde2f 100644 --- a/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_reservation.go +++ b/vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_ip_reservation.go @@ -6,6 +6,7 @@ import ( "github.com/hashicorp/go-oracle-terraform/compute" "github.com/hashicorp/terraform/helper/schema" + "github.com/hashicorp/terraform/helper/validation" ) func resourceOPCIPReservation() *schema.Resource { @@ -30,8 +31,12 @@ func resourceOPCIPReservation() *schema.Resource { }, "parent_pool": { Type: schema.TypeString, - Required: true, + Optional: true, + Default: string(compute.PublicReservationPool), ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(compute.PublicReservationPool), + }, true), }, "tags": tagsForceNewSchema(), "ip": { diff --git a/vendor/vendor.json b/vendor/vendor.json index 1186706c5..e628c7b42 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -2212,10 +2212,10 @@ "revisionTime": "2017-03-08T19:39:51Z" }, { - "checksumSHA1": "hLWb02UbO5qsAjY/ybjHn/hpTII=", + "checksumSHA1": "NWP140S/k5J2L9nLVVgrt9rEh1g=", "path": "github.com/hashicorp/terraform-provider-opc/opc", - "revision": "6460e4eec5cffcc804fe9911860df0c13c5d945f", - "revisionTime": "2017-05-10T18:47:02Z" + "revision": "bf837a8edaadefbac871feb8560faa60f811c8d9", + "revisionTime": "2017-05-23T21:46:41Z" }, { "checksumSHA1": "2fkVZIzvxIGBLhSiVnkTgGiqpQ4=",