Try to fix unicode() changed name
This commit is contained in:
parent
fe1820b831
commit
38b9417cde
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ def get_device_type(type):
|
|||
|
||||
|
||||
def get_device_platform(device_platform):
|
||||
"""
|
||||
if device_platform is None:
|
||||
try:
|
||||
# Python 3.8+ moved linux_distribution() to distro
|
||||
|
|
@ -53,6 +54,7 @@ def get_device_platform(device_platform):
|
|||
device_platform = nb.dcim.platforms.create(
|
||||
name=linux_distribution, slug=slugify(linux_distribution)
|
||||
)
|
||||
"""
|
||||
return device_platform
|
||||
|
||||
def get_vendor(name):
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue