Onemind-Services-LLC / netbox-metatype-importer

Easy import Device and Module types from GitHub repo
Apache License 2.0
43 stars 7 forks source link

Mismatch in PluginConfig Attributes and Update descriptions in setup.py file #29

Closed yash-pal1 closed 8 months ago

yash-pal1 commented 8 months ago

NetBox plugin version

v3.5.9

NetBox version

v0.0.5

Steps to Reproduce

The current implementation of the PluginConfig class in the __init__.py file shows a mismatch between the defined attributes (verbose_name and description).

Expected Behavior

Specifically, the following corrections should be made in the __init__.py file:

Additional Context:

Example for Setup.py

import os

# ...

# Set long description from README.md
readme = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme) as fh:
    long_description = fh.read()

# ...

setup(
    description=`'Plugin Description'`,
    long_description=long_description,
    long_description_content_type="text/markdown",
)

Observed Behavior

The observed behaviour indicates that these attributes are being set as follows: verbose_name = metadata.get("Summary") description = metadata.get("Long-Description")

Resolve By

2021-01-04