From dd2516904527c74e01e0ced5166afe72a479ee00 Mon Sep 17 00:00:00 2001
From: Christian Breunig <christian@breunig.cc>
Date: Thu, 30 May 2024 17:25:27 +0200
Subject: reverse-proxy: T6409: unindent migration script code path

---
 src/migration-scripts/reverse-proxy/0-to-1 | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/migration-scripts/reverse-proxy/0-to-1 b/src/migration-scripts/reverse-proxy/0-to-1
index 62be52ea6..d61493815 100755
--- a/src/migration-scripts/reverse-proxy/0-to-1
+++ b/src/migration-scripts/reverse-proxy/0-to-1
@@ -33,16 +33,16 @@ base = ['load-balancing', 'reverse-proxy', 'backend']
 if not config.exists(base):
     # Nothing to do
     exit(0)
-else:
-    # we need to run this for every configured network
-    for backend in config.list_nodes(base):
-        param_node = base + [backend, 'parameters']
-        if config.exists(param_node):
-            config.delete(param_node)
-
-    try:
-        with open(file_name, 'w') as f:
-            f.write(config.to_string())
-    except OSError as e:
-        print("Failed to save the modified config: {}".format(e))
-        exit(1)
+
+# we need to run this for every configured network
+for backend in config.list_nodes(base):
+    param_node = base + [backend, 'parameters']
+    if config.exists(param_node):
+        config.delete(param_node)
+
+try:
+    with open(file_name, 'w') as f:
+        f.write(config.to_string())
+except OSError as e:
+    print("Failed to save the modified config: {}".format(e))
+    exit(1)
-- 
cgit v1.2.3