From 4d139efc4ec92c6a5b557779b788af1162eb1e2e Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 7 Feb 2019 20:03:45 +0100
Subject: [PATCH] refactored future warning

---
 inventory_provider/tasks/worker.py                              | 2 +-
 .../{test_ix_public_peers.py => test_peer_caching.py}           | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename test/per_router/{test_ix_public_peers.py => test_peer_caching.py} (100%)

diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 66321d66..56e0d44a 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -263,7 +263,7 @@ def reload_router_config(hostname):
     netconf_refresh_config.apply(hostname)
 
     netconf_doc = load_netconf_data(hostname)
-    if not netconf_doc:
+    if netconf_doc is None:
         task_logger.error('no netconf data available for %r' % hostname)
     else:
 
diff --git a/test/per_router/test_ix_public_peers.py b/test/per_router/test_peer_caching.py
similarity index 100%
rename from test/per_router/test_ix_public_peers.py
rename to test/per_router/test_peer_caching.py
-- 
GitLab