summaryrefslogtreecommitdiff
path: root/monitor/josef_reader.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/josef_reader.py')
-rwxr-xr-xmonitor/josef_reader.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/monitor/josef_reader.py b/monitor/josef_reader.py
index f17545d..b6fe55e 100755
--- a/monitor/josef_reader.py
+++ b/monitor/josef_reader.py
@@ -56,16 +56,7 @@ class monitored_domain:
self.entries = entries
def compare_and_log_entries(self, new, old):
- added_items = []
- removed_items = []
-
- for item in new:
- if not item in old:
- added_items.append(item)
-
- for item in old:
- if not item in new:
- removed_items.append(item)
+ added_items, removed_items = compare_lists(new,old)
if len(added_items) != 0:
self.log(str(len(added_items)) + " new item(s):")
@@ -109,7 +100,6 @@ class monitored_entry:
return d
-
def db_monitor_domain(domain, log=None, exclude_invalid=None, get_cert=None, issuer=None):
# print domain
raw = db_lookup_domain(DB_PATH, domain)