Skip to content
Snippets Groups Projects
Commit a4cb4de0 authored by Robert Latta's avatar Robert Latta
Browse files

removed redundant debug code

parent a22c98c2
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,6 @@ routes = Blueprint("inventory-data-testing-support-routes", __name__)
logger = logging.getLogger(__name__)
@routes.route("just-poller-cache", methods=['GET', 'POST'])
def just_poller_cache_update():
r = worker.just_poller_cache.delay().get()
return jsonify(r)
@routes.route("chord-update", methods=['GET', 'POST'])
def chord_update():
r = worker.update_entry_point.delay().get()
......
......@@ -1848,7 +1848,6 @@ def populate_poller_interfaces_cache(warning_callback=lambda s: None):
lab_keys_pattern = 'lab:netconf-interfaces-hosts:*'
lab_equipment = [h.decode('utf-8')[len(lab_keys_pattern) - 1:]
for h in r.keys(lab_keys_pattern)]
logger.debug(lab_equipment)
standard_interfaces = _load_interfaces(
InventoryTask.config,
no_lab=False,
......@@ -1916,13 +1915,3 @@ def populate_poller_interfaces_cache(warning_callback=lambda s: None):
r.set(no_lab_cache_key, json.dumps(non_lab_populated_interfaces))
r.set(all_cache_key, json.dumps(all_populated_interfaces))
@app.task(base=InventoryTask, bind=True, name='just_poller_cache')
@log_task_entry_and_exit
def just_poller_cache(self):
populate_poller_interfaces_cache(warning_callback=self.log_warning)
latch_db(InventoryTask.config)
self.log_info('latched current/next dbs')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment