Skip to content
Snippets Groups Projects
Commit 45328328 authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent acd46c20
No related branches found
No related tags found
No related merge requests found
import logging
from flask import Blueprint, Response, current_app
from inventory_provider.tasks import worker
routes = Blueprint("inventory-data-job-routes", __name__)
......
......@@ -86,8 +86,8 @@ app.steps['worker'].add(WorkerArgs)
@app.task(bind=InventoryTask)
def snmp_refresh_interfaces(self, hostname, community):
task_logger = logging.getLogger(constants.TASK_LOGGER_NAME)
task_logger.debug('>>> snmp_refresh_interfaces(%r, %r)'
% (hostname, community))
task_logger.debug(
'>>> snmp_refresh_interfaces(%r, %r)' % (hostname, community))
InventoryTask.save_value_json(
'snmp-interfaces:' + hostname,
......@@ -96,8 +96,8 @@ def snmp_refresh_interfaces(self, hostname, community):
community,
InventoryTask.config)))
task_logger.debug('<<< snmp_refresh_interfaces(%r, %r)'
% (hostname, community))
task_logger.debug(
'<<< snmp_refresh_interfaces(%r, %r)' % (hostname, community))
@app.task(bind=InventoryTask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment