Skip to content

Commit a742e3c

Browse files
committed
fix: use parseint to solve atoi problems
1 parent f4a7fb6 commit a742e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysdig/resource_sysdig_secure_vulnerability_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func vulnerabilityPolicyFromResourceData(d *schema.ResourceData) (v2.Vulnerabili
232232
return nil
233233
}
234234

235-
idAsInt, err := strconv.Atoi(id)
235+
idAsInt, err := strconv.ParseInt(id, 10, 32)
236236
if err != nil {
237237
return nil
238238
}

0 commit comments

Comments
 (0)