Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
74000645dc | |||
ef0755b9cf | |||
7f22d21d5d | |||
e349c239fe | |||
28ba0e56e7 | |||
b0287e344e | |||
e6e7647f32 | |||
135d29e06f |
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.6-alpine3.9
|
FROM python:3.7-alpine3.10
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
@ -21,7 +21,7 @@ RUN pip install \
|
|||||||
# napalm is used for gathering information from network devices
|
# napalm is used for gathering information from network devices
|
||||||
napalm \
|
napalm \
|
||||||
# ruamel is used in startup_scripts
|
# ruamel is used in startup_scripts
|
||||||
ruamel.yaml \
|
'ruamel.yaml>=0.15,<0.16' \
|
||||||
# pinning django to the version required by netbox
|
# pinning django to the version required by netbox
|
||||||
# adding it here, to install the correct version of
|
# adding it here, to install the correct version of
|
||||||
# django-rq
|
# django-rq
|
||||||
|
@ -380,6 +380,7 @@ Compare the version with the list below to check whether a breaking change was i
|
|||||||
|
|
||||||
The following is a list of breaking changes of the `netbox-docker` project:
|
The following is a list of breaking changes of the `netbox-docker` project:
|
||||||
|
|
||||||
|
* 0.17.0: Updated the python image to `python:3.7-alpine3.10` in [#144][144]. Fixed the permissions and group scripts for Netbox 2.6. in [#148][148].
|
||||||
* 0.16.0: Update the Netbox URL from "github.com/digitalocean/netbox" to "github.com/netbox-community/netbox"
|
* 0.16.0: Update the Netbox URL from "github.com/digitalocean/netbox" to "github.com/netbox-community/netbox"
|
||||||
* 0.15.0: Update for Netbox v2.6.0.
|
* 0.15.0: Update for Netbox v2.6.0.
|
||||||
The `configuration/configuration.py` file has been updated to match the file from Netbox.
|
The `configuration/configuration.py` file has been updated to match the file from Netbox.
|
||||||
@ -416,6 +417,8 @@ The following is a list of breaking changes of the `netbox-docker` project:
|
|||||||
[135]: https://github.com/netbox-community/netbox-docker/pull/135
|
[135]: https://github.com/netbox-community/netbox-docker/pull/135
|
||||||
[136]: https://github.com/netbox-community/netbox-docker/pull/136
|
[136]: https://github.com/netbox-community/netbox-docker/pull/136
|
||||||
[137]: https://github.com/netbox-community/netbox-docker/pull/137
|
[137]: https://github.com/netbox-community/netbox-docker/pull/137
|
||||||
|
[144]: https://github.com/netbox-community/netbox-docker/pull/144
|
||||||
|
[148]: https://github.com/netbox-community/netbox-docker/pull/148
|
||||||
|
|
||||||
## Rebuilding & Publishing images
|
## Rebuilding & Publishing images
|
||||||
|
|
||||||
|
@ -29,6 +29,6 @@ with file.open('r') as stream:
|
|||||||
if user_permissions:
|
if user_permissions:
|
||||||
user.user_permissions.clear()
|
user.user_permissions.clear()
|
||||||
for permission_codename in user_details.get('permissions', []):
|
for permission_codename in user_details.get('permissions', []):
|
||||||
permission = Permission.objects.get(codename=permission_codename)
|
for permission in Permission.objects.filter(codename=permission_codename):
|
||||||
user.user_permissions.add(permission)
|
user.user_permissions.add(permission)
|
||||||
user.save()
|
user.save()
|
||||||
|
@ -29,5 +29,5 @@ with file.open('r') as stream:
|
|||||||
group.permissions.clear()
|
group.permissions.clear()
|
||||||
print("Permissions:", group.permissions.all())
|
print("Permissions:", group.permissions.all())
|
||||||
for permission_codename in group_details.get('permissions', []):
|
for permission_codename in group_details.get('permissions', []):
|
||||||
permission = Permission.objects.get(codename=permission_codename)
|
for permission in Permission.objects.filter(codename=permission_codename):
|
||||||
group.permissions.add(permission)
|
group.permissions.add(permission)
|
||||||
|
Reference in New Issue
Block a user