]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Run formatter over generate_support_bundle.py 10300/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 6 Jan 2022 13:18:30 +0000 (08:18 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 6 Jan 2022 13:18:30 +0000 (08:18 -0500)
The generate_support_bundle.py script needs some
reformating to meet our standards

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tools/generate_support_bundle.py

index c6b876f5b830ff5be78986918c6dd29752d62705..104d9714d427e43e671ab8223c641be0c3f5cc74 100755 (executable)
@@ -26,19 +26,28 @@ import os
 import subprocess
 import tempfile
 
+
 def open_with_backup(path):
     if os.path.exists(path):
         print("Making backup of " + path)
         subprocess.check_call("mv {0} {0}.prev".format(path), shell=True)
     return open(path, "w")
 
+
 def main():
     parser = argparse.ArgumentParser()
-    parser.add_argument("-c", "--config", default="/etc/frr/support_bundle_commands.conf", help="input config")
-    parser.add_argument("-l", "--log-dir", default="/var/log/frr", help="directory for logfiles")
+    parser.add_argument(
+        "-c",
+        "--config",
+        default="/etc/frr/support_bundle_commands.conf",
+        help="input config",
+    )
+    parser.add_argument(
+        "-l", "--log-dir", default="/var/log/frr", help="directory for logfiles"
+    )
     args = parser.parse_args()
 
-    collecting = False # file format has sentinels (seem superfluous)
+    collecting = False  # file format has sentinels (seem superfluous)
     proc_cmds = {}
     proc = None
     temp = None
@@ -85,5 +94,6 @@ def main():
     for p in procs:
         p.wait()
 
+
 if __name__ == "__main__":
     main()