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

pep8

parent a9e42edc
No related branches found
No related tags found
No related merge requests found
SNMP_LOGGER_NAME = "snmp-logger"
JUNIPER_LOGGER_NAME = "juniper-logger"
DATABASE_LOGGER_NAME = "database-logger"
TASK_LOGGER_NAME = "task-logger"
\ No newline at end of file
TASK_LOGGER_NAME = "task-logger"
......@@ -67,4 +67,4 @@ if __name__ == "__main__":
network_info = load_network_details(params["redis"])
with open("./router-info.json", "w") as f:
f.write(json.dumps(network_info))
\ No newline at end of file
f.write(json.dumps(network_info))
from celery import Celery
from celery.bin import Option
app = Celery("app")
app.config_from_object("inventory_provider.tasks.config")
......@@ -75,4 +75,7 @@ def snmp_refresh_interfaces(self, hostname, community):
InventoryTask.save_key(
hostname,
"interfaces",
list(snmp.get_router_interfaces(hostname, community, InventoryTask.config)))
list(snmp.get_router_interfaces(
hostname,
community,
InventoryTask.config)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment