mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-07 14:09:21 +01:00
Update nb-dt-import.py
This commit is contained in:
parent
ed737e22ee
commit
12572c9d7d
@ -9,6 +9,7 @@ import argparse
|
||||
import os
|
||||
import settings
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
counter = Counter(added=0, updated=0, manufacturer=0)
|
||||
@ -26,7 +27,7 @@ def update_package(path: str, branch: str):
|
||||
|
||||
|
||||
def slugFormat(name):
|
||||
return name.lower().replace(' ', '_')
|
||||
return re.sub('\W+','-', name.lower())
|
||||
|
||||
YAML_EXTENSIONS = ['yml', 'yaml']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user