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 authored and treywelsh committed Dec 13, 2023
1 parent c68f8b0 commit fd781c2
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 fd781c2

Please sign in to comment.