Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 3c7590a

Browse files
committed
[netdiff] Upgraded to 0.5.0 #56
Close #56
1 parent 0bb60ee commit 3c7590a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

django_netjsongraph/base/topology.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,8 @@ def get_topology_data(self, data=None):
112112
"""
113113
gets latest topology data
114114
"""
115-
# fetch data from URL unless data is passed as argument
116-
if data is None:
117-
data = self.url
118-
latest = self.parser_class(data, timeout=TIMEOUT)
115+
# if data is ``None`` it will be fetched from ``self.url``
116+
latest = self.parser_class(data=data, url=self.url, timeout=TIMEOUT)
119117
# update topology attributes if needed
120118
changed = False
121119
for attr in ['protocol', 'version', 'metric']:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
django>=1.11,<1.12
22
djangorestframework>=3.3,<3.7
33
django-model-utils
4-
netdiff>=0.4.7,<=5.0
4+
netdiff>=0.5.0,<=6.0
55
openwisp-utils>=0.1.2,<0.2
66
jsonfield
77
six

0 commit comments

Comments
 (0)