-
-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission Codenames Not Necessarily Unique #146
Comments
Unless we want to more fundamentally change these scripts, seems like this is the change that would need to be made:
changed to
and similarly, for groups
changed to
Edit: would be happy to do a PR if this is the route to take |
This looks great to me! From my experience, I don't think very many people seem to use these It would be great if you could open a PR with these changes as I don't think @cimnine has much time any more since changing jobs this past spring. |
In my case, I'm using them as an alternative to using Will get that PR done here shortly |
Thank you guys for reporting this and also for the suggestions on how to fix this. The PR already looks promising. |
Current Behavior
Prior to v2.6 of NetBox, the initializer files named
users.yml
andgroups.yml
worked perfectly with all Django models. However, in v2.6, the stocktaggit
model was changed into a customtaggit
model (not sure of the specifics as to why).With this change, when trying to add the permissions programatically for anything related to
tags
, the container fornetbox
fails with the following error:Issue #3345 was opened against the main NetBox project since where was a similar issue with
interface-connections
whenv2.5
was getting ready to be released (see issue #2624 within the NetBox project).In that new issue, @jeremystretch mentioned there the following:
In short, the current code for adding permissions for
users
andgroups
in thestartup_scripts
directory need to be adjusted to reflect that guidance from the main developer of NetBox.Expected Behavior
To have the permissions for
tags
be automatically applied correctly upon starting thenetbox
container instead of crashing with the above error....
Debug Information
The output of
docker-compose version
: N/AThe output of
docker version
: N/AThe output of
git rev-parse HEAD
: N/AThe command you used to start the project: N/A
The output of
docker-compose logs netbox
:N/A
The output of
docker-compose logs nginx
:N/A
The text was updated successfully, but these errors were encountered: