Strip leading/trailing whitespace from CSV import #673

Closed
opened 2025-12-29 16:24:38 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 30, 2017).

Example: Attempting to import secrets to devices with whitespace on each line before the name will yield an error complaining that the devices cannot be found. We should strip leading and trailing whitespace from each line to avoid this.

Originally created by @jeremystretch on GitHub (Jan 30, 2017). Example: Attempting to import secrets to devices with whitespace on each line before the name will yield an error complaining that the devices cannot be found. We should strip leading and trailing whitespace from each line to avoid this.
adam added the type: feature label 2025-12-29 16:24:38 +01:00
adam closed this issue 2025-12-29 16:24:38 +01:00
Author
Owner

@candlerb commented on GitHub (Jan 31, 2017):

Or even from each field?

@candlerb commented on GitHub (Jan 31, 2017): Or even from each field?
Author
Owner

@jeremystretch commented on GitHub (Jan 31, 2017):

@candlerb Probably. The only exception might be free-form comment fields, since technically a user might want to lead with whitespace for indentation.

@jeremystretch commented on GitHub (Jan 31, 2017): @candlerb Probably. The only exception might be free-form comment fields, since technically a user might want to lead with whitespace for indentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#673