Skip to content

Commit

Permalink
B #469: Fix service crashes
Browse files Browse the repository at this point in the history
Use ParseInt instead of ParseUint (fix)
  • Loading branch information
sk4zuzu committed Dec 12, 2023
1 parent 0e1f3e1 commit 7b9f04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opennebula/resource_opennebula_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func resourceOpennebulaServiceRead(ctx context.Context, d *schema.ResourceData,
for _, val := range sv.Template.Body.NetworksVals {
for k, v := range val {
s := v.(map[string]interface{})["id"].(string)
networkID, err := strconv.ParseUint(s, 10, 0)
networkID, err := strconv.ParseInt(s, 10, 0)
if err != nil {
diags = append(diags, diag.Diagnostic{
Severity: diag.Error,
Expand Down

0 comments on commit 7b9f04a

Please sign in to comment.