Solvik / netbox-agent

Netbox agent to run on your infrastructure's servers
Apache License 2.0
305 stars 78 forks source link

Truncate Serials Over 50 characters in inventory.py #291

Open NessieCanCode opened 8 months ago

NessieCanCode commented 8 months ago

Ensured serial numbers don't exceed 50 characters.

Preventing this error: The request failed with code 400 Bad Request: {'serial': ['Ensure this field has no more than 50 characters.']

CllaudiaB commented 3 weeks ago

Hello @NessieCanCode Thanks for your suggestions. Is it possible to split it into several branches? To make it easier to merge please. For the part Skip if the interface is ib0, in the configuration file you have this part: ignore_interfaces: "(dummy.*|docker.*)" that allows you to skip interfaces according to your needs, no need to do it in the code.