Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Fixes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
scross01 committed Aug 15, 2018
1 parent 5979bcd commit cc6bfa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions oraclepaas/resource_database_service_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"log"
"strconv"
"strings"
"time"

opcClient "github.com/hashicorp/go-oracle-terraform/client"
Expand Down Expand Up @@ -522,7 +523,6 @@ func resourceOPAASDatabaseServiceInstanceCreate(d *schema.ResourceData, meta int
input := database.CreateServiceInstanceInput{
Name: d.Get("name").(string),
Edition: database.ServiceInstanceEdition(d.Get("edition").(string)),
IPReservations: getStringList(d, "ip_reservations"),
IsBYOL: d.Get("bring_your_own_license").(bool),
Level: database.ServiceInstanceLevel(d.Get("level").(string)),
Shape: database.ServiceInstanceShape(d.Get("shape").(string)),
Expand All @@ -545,7 +545,7 @@ func resourceOPAASDatabaseServiceInstanceCreate(d *schema.ResourceData, meta int
}

if _, ok := d.GetOk("ip_reservations"); ok {
input.IPReservations = getStringList(d, "ip_reservations")
input.IPReservations = strings.Join(getStringList(d, "ip_reservations"), ",")
}

if v, ok := d.GetOk("region"); ok {
Expand Down
4 changes: 2 additions & 2 deletions oraclepaas/resource_java_service_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ func expandWebLogicConfig(d *schema.ResourceData, input *java.CreateServiceInsta
webLogicServer.ClusterName = v.(string)
}
if v := attrs["ip_reservations"]; v != nil {
webLogicServer.IPReservations = getStringList(d, "weblogic_server.0.ip_reservations")
webLogicServer.IPReservations = strings.Join(getStringList(d, "weblogic_server.0.ip_reservations"), ",")
}
if v := attrs["middleware_volume_size"]; v != nil {
webLogicServer.MWVolumeSize = v.(string)
Expand Down Expand Up @@ -932,7 +932,7 @@ func expandOTDConfig(d *schema.ResourceData, input *java.CreateServiceInstanceIn
otdInfo.HAEnabled = v.(bool)
}
if v := attrs["ip_reservations"]; v != nil {
otdInfo.IPReservations = getStringList(d, "oracle_traffic_director.0.ip_reservations")
otdInfo.IPReservations = strings.Join(getStringList(d, "oracle_traffic_director.0.ip_reservations"), ",")
}
if v := attrs["load_balancing_policy"]; v != nil {
otdInfo.LoadBalancingPolicy = java.ServiceInstanceLoadBalancingPolicy(v.(string))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc6bfa5

Please sign in to comment.