Skip to content

Commit adc2daf

Browse files
committed
Fix load balancer listener to write default hostnames in state
1 parent d067bf9 commit adc2daf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- Support for VM 20c Preview in DBAAS
66
- Support for console connection for db nodes in BM and VM db systems
77

8+
### Fixed
9+
- Fixed load balancer listener to write default hostnames in state [Github issue #975](https://github.com/terraform-providers/terraform-provider-oci/issues/975)
10+
811
## 3.66.0 (March 11, 2020)
912

1013
### Added

oci/load_balancer_listener_resource.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ func (s *LoadBalancerListenerResourceCrud) SetData() error {
533533
}
534534
if s.Res.HostnameNames != nil {
535535
s.D.Set("hostname_names", s.Res.HostnameNames)
536+
} else {
537+
s.D.Set("hostname_names", []interface{}{})
536538
}
537539
if s.Res.Name != nil {
538540
s.D.Set("name", *s.Res.Name)

0 commit comments

Comments
 (0)