Skip to content

Commit 24be782

Browse files
authored
Merge pull request #702 from terraform-providers/release
Release 3.14.0
2 parents 65edd80 + 18c6128 commit 24be782

21 files changed

+219
-71
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## 3.13.1 (Unreleased)
1+
## 3.14.0 (Unreleased)
2+
3+
### Added
4+
- Adding support for the database renaming during restore from incremental backup
5+
26
## 3.13.0 (January 23, 2019)
37

48
### Added

oci/audit_configuration_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package provider
44

55
import (
66
"context"
7+
"time"
78

89
"github.com/hashicorp/terraform/helper/schema"
910

@@ -117,6 +118,10 @@ func (s *ConfigurationResourceCrud) Update() error {
117118
return err
118119
}
119120

121+
// Workaround: Sleep for some time before polling the configuration. Because update happens asynchronously, polling too
122+
// soon may result in service returning stale configuration values.
123+
time.Sleep(time.Second * 5)
124+
120125
// Requests to update the retention policy may succeed instantly but may not see the actual update take effect
121126
// until minutes later. Add polling here to return only when the change has taken effect.
122127
retentionPolicyFunc := func() bool { return *s.Res.RetentionPeriodDays == *request.RetentionPeriodDays }

oci/database_db_system_resource.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@ func (s *DbSystemResourceCrud) mapToCreateDatabaseFromBackupDetails(fieldKeyForm
718718
result.BackupTDEPassword = &tmp
719719
}
720720

721+
if dbName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "db_name")); ok {
722+
tmp := dbName.(string)
723+
result.DbName = &tmp
724+
}
725+
721726
return result, nil
722727
}
723728

@@ -736,6 +741,10 @@ func CreateDatabaseFromBackupDetailsToMap(obj *oci_database.CreateDatabaseFromBa
736741
result["backup_tde_password"] = string(*obj.BackupTDEPassword)
737742
}
738743

744+
if obj.DbName != nil {
745+
result["db_name"] = string(*obj.DbName)
746+
}
747+
739748
return result
740749
}
741750

oci/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"log"
77
)
88

9-
const Version = "3.13.0"
9+
const Version = "3.14.0"
1010

1111
func PrintVersion() {
1212
log.Printf("[INFO] terraform-provider-oci %s\n", Version)

vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/oracle/oci-go-sdk/common/auth/instance_principal_key_provider.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/oracle/oci-go-sdk/common/client.go

Lines changed: 9 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/oracle/oci-go-sdk/common/common.go

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/oracle/oci-go-sdk/common/http.go

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)