Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768183
D1716.id4360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
916 B
Referenced Files
None
Subscribers
None
D1716.id4360.diff
View Options
diff --git a/scripts/byTasks/HTTP/check-letsencrypt-certificates b/scripts/byTasks/HTTP/check-letsencrypt-certificates
--- a/scripts/byTasks/HTTP/check-letsencrypt-certificates
+++ b/scripts/byTasks/HTTP/check-letsencrypt-certificates
@@ -45,16 +45,16 @@
# -------------------------------------------------------------
-def check_directories(dirs):
- for dir in dirs:
- if os.path.isdir(dir):
- check_directory(dir)
+def check_directories(directories):
+ for directory in directories:
+ if os.path.isdir(directory):
+ check_directory(directory)
-def check_directory(dir):
- for file in os.listdir(dir):
+def check_directory(directory):
+ for file in os.listdir(directory):
if file.endswith(".conf"):
- fullpath = os.path.join(dir, file)
+ fullpath = os.path.join(directory, file)
check_certificate(fullpath)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:04 (13 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259048
Default Alt Text
D1716.id4360.diff (916 B)
Attached To
Mode
D1716: Reduce variables shadowing cases
Attached
Detach File
Event Timeline
Log In to Comment