Skip to content

Commit 770f191

Browse files
SpaceSavingRatio now float (#377)
[CSBS] `SpaceSavingRatio` type to float What this PR does / why we need it This PR fixing opentelekomcloud/terraform-provider-opentelekomcloud#1832 Tests === RUN TestBackupList --- PASS: TestBackupList (1.48s) === RUN TestBackupLifeCycle common.go:188: Attempting to create ECSv1 common.go:201: Created ECSv1 instance: d04f82ca-8f5b-4055-9daf-523925fe47ef backup_test.go:38: Check if resource is protectable backup_test.go:50: Resource is protectable backup_test.go:58: Attempting to create CSBS backup backup_test.go:79: Created CSBS backup: 25c83277-902f-4930-b62e-e49bdf4119ef backup_test.go:62: Attempting to delete CSBS backup: 25c83277-902f-4930-b62e-e49bdf4119ef backup_test.go:68: Deleted CSBS backup: 25c83277-902f-4930-b62e-e49bdf4119ef common.go:207: Attempting to delete ECSv1: d04f82ca-8f5b-4055-9daf-523925fe47ef common.go:224: ECSv1 instance deleted: d04f82ca-8f5b-4055-9daf-523925fe47ef --- PASS: TestBackupLifeCycle (362.83s) PASS Process finished with the exit code 0 Reviewed-by: Artem Lifshits <None> Reviewed-by: Aloento <None>
1 parent 06be284 commit 770f191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openstack/csbs/v1/backup/results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type ExtendInfo struct {
6767
ResourceName string `json:"resource_name"`
6868
ResourceType string `json:"resource_type"`
6969
Size int `json:"size"`
70-
SpaceSavingRatio int `json:"space_saving_ratio"`
70+
SpaceSavingRatio float32 `json:"space_saving_ratio"`
7171
VolumeBackups []VolumeBackup `json:"volume_backups"`
7272
FinishedAt string `json:"finished_at"`
7373
TaskId string `json:"taskid"`

0 commit comments

Comments
 (0)