Skip to content

Commit

Permalink
Merge pull request #76 from networktocode/dga-fix-deps-redis
Browse files Browse the repository at this point in the history
Fix for Netbox issue 4910
  • Loading branch information
dgarros authored Jul 29, 2020
2 parents 66ad9ab + 0b8aac0 commit 4356d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ RUN pip install --upgrade pip\
# -------------------------------------------------------------------------------------
# Install NetBox
# -------------------------------------------------------------------------------------
# Remove redis==3.4.1 from the requirements.txt file as a workaround to #4910
# https://github.com/netbox-community/netbox/issues/4910, required for version 2.8.8 and earlier
RUN git clone --single-branch --branch ${netbox_ver} https://github.com/netbox-community/netbox.git /opt/netbox/ && \
cd /opt/netbox/ && \
sed -i '/^redis\=\=/d' /opt/netbox/requirements.txt && \
pip install -r /opt/netbox/requirements.txt

# Make the django-debug-toolbar always visible when DEBUG is enabled,
Expand Down
1 change: 0 additions & 1 deletion netbox_onboarding/onboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ def check_if_device_already_exist(self):

def ensure_device(self):
"""Ensure that the device represented by the DevNetKeeper exists in the NetBox system."""

# Only check the device role and device type if the device do not exist already
if not self.check_if_device_already_exist():
self.ensure_device_type()
Expand Down

0 comments on commit 4356d86

Please sign in to comment.