Skip to content

Commit 7d52089

Browse files
committed
Fix nil panic in TimeStarted property for db backup datasources
1 parent e9d1846 commit 7d52089

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 3.90.1 (Unreleased)
2+
3+
### Fixed
4+
- Fix nil panic error in oci_database_backups data source, which results in discovery errors
5+
26
## 3.90.0 (August 19, 2020)
37

48
### Added

oci/database_backups_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (s *DatabaseBackupsDataSourceCrud) SetData() error {
143143
}
144144

145145
if r.TimeStarted != nil {
146-
backup["time_started"] = r.TimeEnded.Format(time.RFC3339Nano)
146+
backup["time_started"] = r.TimeStarted.Format(time.RFC3339Nano)
147147
}
148148

149149
backup["type"] = r.Type

0 commit comments

Comments
 (0)