mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-23 22:08:35 +01:00
Strip invalid spaces from Manufacturer slug generation
This commit is contained in:
parent
a78df75074
commit
d57b93faae
@ -52,7 +52,7 @@ def readYAMl(files):
|
||||
manufacturer = data['manufacturer']
|
||||
data['manufacturer'] = {}
|
||||
data['manufacturer']['name'] = manufacturer
|
||||
data['manufacturer']['slug'] = manufacturer.lower()
|
||||
data['manufacturer']['slug'] = manufacturer.lower().replace(" ", "")
|
||||
deviceTypes.append(data)
|
||||
manufacturers.append(manufacturer)
|
||||
return deviceTypes
|
||||
|
Loading…
Reference in New Issue
Block a user