Skip to content

Strip invalid spaces from Manufacturer slug generation #8

@mtinberg

Description

@mtinberg

https://github.com/minitriga/Netbox-Device-Type-Library-Import/blob/1f31c11edadccbdfa984e2cb170fe05f2142f3cf/nb-dt-import.py#L55

Slug can't have spaces, but some directories and the Manufacturer Name does have spaces, strip them out. Fixes problems importing devicetype-library for "Palo Alto"

data['manufacturer']['slug'] = manufacturer.lower().replace(" ", "")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions