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" SNMP_LOGGER_NAME = "snmp-logger"
JUNIPER_LOGGER_NAME = "juniper-logger" JUNIPER_LOGGER_NAME = "juniper-logger"
DATABASE_LOGGER_NAME = "database-logger" DATABASE_LOGGER_NAME = "database-logger"
TASK_LOGGER_NAME = "task-logger" TASK_LOGGER_NAME = "task-logger"
\ No newline at end of file
...@@ -67,4 +67,4 @@ if __name__ == "__main__": ...@@ -67,4 +67,4 @@ if __name__ == "__main__":
network_info = load_network_details(params["redis"]) network_info = load_network_details(params["redis"])
with open("./router-info.json", "w") as f: with open("./router-info.json", "w") as f:
f.write(json.dumps(network_info)) f.write(json.dumps(network_info))
\ No newline at end of file
from celery import Celery from celery import Celery
from celery.bin import Option
app = Celery("app") app = Celery("app")
app.config_from_object("inventory_provider.tasks.config") app.config_from_object("inventory_provider.tasks.config")
...@@ -75,4 +75,7 @@ def snmp_refresh_interfaces(self, hostname, community): ...@@ -75,4 +75,7 @@ def snmp_refresh_interfaces(self, hostname, community):
InventoryTask.save_key( InventoryTask.save_key(
hostname, hostname,
"interfaces", "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.
Finish editing this message first!
Please register or to comment