From eb6ffdeba29279bf0185654e52cb09489f2a8eec Mon Sep 17 00:00:00 2001 From: Jake Champlin Date: Thu, 25 May 2017 11:18:57 -0400 Subject: [PATCH] provider/opc: update opc provider vendor --- .../opc/resource_ip_address_reservation.go | 1 + .../terraform-provider-opc/opc/resource_ip_reservation.go | 7 ++++++- vendor/vendor.json | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) 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=",