Skip to content

Commit

Permalink
Bug fix: volume_type import (#3)
Browse files Browse the repository at this point in the history
Bug fix: volume_type import
  • Loading branch information
vasiliyskysql authored Feb 29, 2024
1 parent 7874627 commit ee9378d
Show file tree
Hide file tree
Showing 3 changed files with 460 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.1.0 (Unreleased)
# Changelog

FEATURES:
## [2.0.1] - 2024-02-24
### Fixed
- `volume_type` imports work as expected.
4 changes: 1 addition & 3 deletions internal/provider/service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,7 @@ func (r *ServiceResource) readServiceState(ctx context.Context, data *ServiceRes
} else {
data.VolumeIOPS = types.Int64Null()
}
if !data.VolumeType.IsNull() {
data.VolumeType = types.StringValue(service.StorageVolume.VolumeType)
}
data.VolumeType = types.StringValue(service.StorageVolume.VolumeType)
if !data.ReplicationEnabled.IsNull() {
data.ReplicationEnabled = types.BoolValue(service.ReplicationEnabled)
}
Expand Down
Loading

0 comments on commit ee9378d

Please sign in to comment.