alsigna / netbox-software-manager

NetBox Plugin to deal with Cisco IOS & XE software
MIT License
46 stars 8 forks source link

0.0.4 migration issues with upload_to #11

Closed ryanmerolle closed 1 year ago

ryanmerolle commented 1 year ago

I am testing the new 0.0.4 release using pip

It looks like you have a migration issue:

/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py migrate
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
SystemCheckError: System check identified some issues:

ERRORS:
software_manager.SoftwareImage.image: (fields.E202) FileField's 'upload_to' argument must be a relative path, not an absolute path.
        HINT: Remove the leading slash.
alsigna commented 1 year ago

hi, is it for docker or baremetal?

ryanmerolle commented 1 year ago

I am testing on netbox-docker using netbox 3.4.3

alsigna commented 1 year ago

please share your PLUGINS_CONFIG setting, "IMAGE_FOLDER" key.

ryanmerolle commented 1 year ago

Well I guess I need RTFM. Apologies! I left an empty config.

I will raise some issues for default values and such. I will also submit some PRs.