소스 검색

Fix typos.

Joe Clarke 1 년 전
부모
커밋
e12df81b53
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      automation/syslog-ng-filters/err_disable.py

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

@@ -95,5 +95,5 @@ if __name__ == "__main__":
 
                         del curr_ports[f"{host}:{m.group(1)}"]
 
-        with open(CACHE_FILE, "w"):
-            json.dump(fd, curr_ports)
+        with open(CACHE_FILE, "w") as fd:
+            json.dump(curr_ports, fd)