We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98b55a commit a2d3d84Copy full SHA for a2d3d84
internal/provider/workspacegroups/resource.go
@@ -4,7 +4,6 @@ import (
4
"context"
5
"fmt"
6
"net/http"
7
- "strconv"
8
9
"github.com/google/uuid"
10
"github.com/hashicorp/terraform-plugin-framework/path"
@@ -393,17 +392,8 @@ func toManagementUpdateWindow(uw *updateWindowDataSourceModel) *management.Updat
393
392
return nil
394
}
395
396
- day, err := strconv.Atoi(fmt.Sprint(uw.Hour))
397
- if err != nil {
398
- return nil
399
- }
400
- hour, err := strconv.Atoi(fmt.Sprint(uw.Hour))
401
402
403
404
-
405
return &management.UpdateWindow{
406
- Hour: float32(day),
407
- Day: float32(hour),
+ Hour: uw.Hour.ValueInt64(),
+ Day: uw.Day.ValueInt64(),
408
409
0 commit comments