Browse Source

Fix spacing.

Joe Clarke 1 year ago
parent
commit
b1dd2d0fe0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      automation/syslog-ng-filters/err_disable.py

+ 3 - 3
automation/syslog-ng-filters/err_disable.py

@@ -66,14 +66,14 @@ if __name__ == "__main__":
         hname = msghdr.replace(": ", "")
         hpart = ""
         if hname != "" and hname != "GMT" and hname != "CET":
-            hpart = "({}) ".format(hname)
+            hpart = "({})".format(hname)
 
         m = re.search(r": ([^,]+), putting ([^\s]+) in err-disable state", msg)
         if m:
             spark.post_to_spark(
                 C.WEBEX_TEAM,
                 SPARK_ROOM,
-                "Port {} on **{}** **{}**has been put in an err-disable state because {}".format(
+                "Port {} on **{}** **{}** has been put in an err-disable state because {}".format(
                     make_tool_link(host, m.group(2)), host, hpart, m.group(1)
                 ),
                 MessageType.WARNING,
@@ -89,7 +89,7 @@ if __name__ == "__main__":
                         spark.post_to_spark(
                             C.WEBEX_TEAM,
                             SPARK_ROOM,
-                            "Port {} on **{}** **{}**is recovering from err-disable".format(make_tool_link(host, m.group(1)), host, hpart),
+                            "Port {} on **{}** **{}** is recovering from err-disable".format(make_tool_link(host, m.group(1)), host, hpart),
                             MessageType.GOOD,
                         )