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

Commit

Permalink
Merge pull request oracle#702 from terraform-providers/release
Browse files Browse the repository at this point in the history
Release 3.14.0
  • Loading branch information
dshelbyo committed Jan 28, 2019
2 parents 65edd80 + 18c6128 commit 24be782
Show file tree
Hide file tree
Showing 21 changed files with 219 additions and 71 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,8 @@
## 3.13.1 (Unreleased)
## 3.14.0 (Unreleased)

### Added
- Adding support for the database renaming during restore from incremental backup

## 3.13.0 (January 23, 2019)

### Added
Expand Down
5 changes: 5 additions & 0 deletions oci/audit_configuration_resource.go
Expand Up @@ -4,6 +4,7 @@ package provider

import (
"context"
"time"

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

Expand Down Expand Up @@ -117,6 +118,10 @@ func (s *ConfigurationResourceCrud) Update() error {
return err
}

// Workaround: Sleep for some time before polling the configuration. Because update happens asynchronously, polling too
// soon may result in service returning stale configuration values.
time.Sleep(time.Second * 5)

// Requests to update the retention policy may succeed instantly but may not see the actual update take effect
// until minutes later. Add polling here to return only when the change has taken effect.
retentionPolicyFunc := func() bool { return *s.Res.RetentionPeriodDays == *request.RetentionPeriodDays }
Expand Down
9 changes: 9 additions & 0 deletions oci/database_db_system_resource.go
Expand Up @@ -718,6 +718,11 @@ func (s *DbSystemResourceCrud) mapToCreateDatabaseFromBackupDetails(fieldKeyForm
result.BackupTDEPassword = &tmp
}

if dbName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "db_name")); ok {
tmp := dbName.(string)
result.DbName = &tmp
}

return result, nil
}

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

if obj.DbName != nil {
result["db_name"] = string(*obj.DbName)
}

return result
}

Expand Down
2 changes: 1 addition & 1 deletion oci/version.go
Expand Up @@ -6,7 +6,7 @@ import (
"log"
)

const Version = "3.13.0"
const Version = "3.14.0"

func PrintVersion() {
log.Printf("[INFO] terraform-provider-oci %s\n", Version)
Expand Down
9 changes: 8 additions & 1 deletion vendor/github.com/oracle/oci-go-sdk/CHANGELOG.md

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.

16 changes: 9 additions & 7 deletions vendor/github.com/oracle/oci-go-sdk/common/client.go

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

13 changes: 9 additions & 4 deletions vendor/github.com/oracle/oci-go-sdk/common/common.go

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

19 changes: 9 additions & 10 deletions vendor/github.com/oracle/oci-go-sdk/common/http.go

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

0 comments on commit 24be782

Please sign in to comment.