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

pep8

parent acd46c20
Branches
Tags
No related merge requests found
import logging
from flask import Blueprint, Response, current_app from flask import Blueprint, Response, current_app
from inventory_provider.tasks import worker from inventory_provider.tasks import worker
routes = Blueprint("inventory-data-job-routes", __name__) routes = Blueprint("inventory-data-job-routes", __name__)
......
...@@ -86,8 +86,8 @@ app.steps['worker'].add(WorkerArgs) ...@@ -86,8 +86,8 @@ app.steps['worker'].add(WorkerArgs)
@app.task(bind=InventoryTask) @app.task(bind=InventoryTask)
def snmp_refresh_interfaces(self, hostname, community): def snmp_refresh_interfaces(self, hostname, community):
task_logger = logging.getLogger(constants.TASK_LOGGER_NAME) task_logger = logging.getLogger(constants.TASK_LOGGER_NAME)
task_logger.debug('>>> snmp_refresh_interfaces(%r, %r)' task_logger.debug(
% (hostname, community)) '>>> snmp_refresh_interfaces(%r, %r)' % (hostname, community))
InventoryTask.save_value_json( InventoryTask.save_value_json(
'snmp-interfaces:' + hostname, 'snmp-interfaces:' + hostname,
...@@ -96,8 +96,8 @@ def snmp_refresh_interfaces(self, hostname, community): ...@@ -96,8 +96,8 @@ def snmp_refresh_interfaces(self, hostname, community):
community, community,
InventoryTask.config))) InventoryTask.config)))
task_logger.debug('<<< snmp_refresh_interfaces(%r, %r)' task_logger.debug(
% (hostname, community)) '<<< snmp_refresh_interfaces(%r, %r)' % (hostname, community))
@app.task(bind=InventoryTask) @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