Open Haeki opened 4 years ago
" none" causes problems as asset_tag #103
Recently he same happen with " to be filled by o.e.m." having a leading whitespace.
" to be filled by o.e.m."
Instead of again adding a second String with a white space in front to the banned_tags list, I would just strip leading whitespaces before comparing.
I used the Python strip() method and remove the already added " none" from the list. Strip whitespaces when checking if asset tag is banned #122
Environment
Related Bug
" none" causes problems as asset_tag #103
Recently he same happen with
" to be filled by o.e.m."
having a leading whitespace.Solution
Instead of again adding a second String with a white space in front to the banned_tags list, I would just strip leading whitespaces before comparing.
I used the Python strip() method and remove the already added " none" from the list. Strip whitespaces when checking if asset tag is banned #122