From 05a95d069bbe378f105b3708b0c9855703888c33 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Fri, 7 Aug 2020 00:28:46 +0200 Subject: [PATCH] [cli][domain] continue to convert code ... --- halfapi/cli/domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/halfapi/cli/domain.py b/halfapi/cli/domain.py index e802797..e878b52 100644 --- a/halfapi/cli/domain.py +++ b/halfapi/cli/domain.py @@ -200,7 +200,7 @@ def update_db(domain): return False try: - add_domain(domain) + add_domain() except Exception as e: # Could not insert Domain # @TODO : Insertion exception handling @@ -224,7 +224,7 @@ def update_db(domain): continue try: - add_router(router_name, domain) + add_router(router_name) except Exception as e: # Could not insert Router # @TODO : Insertion exception handling @@ -236,7 +236,7 @@ def update_db(domain): for http_verb, acls in route_params.items(): try: # Insert a route and it's ACLS - add_route(http_verb, route_path, router_name, domain, acls) + add_route(http_verb, route_path, router_name, acls) except Exception as e: # Could not insert route # @TODO : Insertion exception handling