[sysadmin-bin] os.path.splitext keeps the dot
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] os.path.splitext keeps the dot
- Date: Mon, 7 Mar 2022 19:10:38 +0000 (UTC)
commit 81dacaf11a71b7f197302090c8dba59bd8ee476b
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Mar 7 20:10:27 2022 +0100
os.path.splitext keeps the dot
certbot/auth-hook | 2 +-
certbot/cleanup-hook | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/certbot/auth-hook b/certbot/auth-hook
index c788fb5..7146011 100755
--- a/certbot/auth-hook
+++ b/certbot/auth-hook
@@ -60,7 +60,7 @@ def main():
for built_zone in os.listdir(f"{tmpdir}/built"):
zone_name, zone_ext = os.path.splitext(built_zone)
- if zone_ext == "signed":
+ if zone_ext == ".signed":
shutil.copyfile(f"{tmpdir}/built/{built_zone}", f"/var/lib/nsd/master/{zone_name}")
subprocess.run(["sudo", "/usr/sbin/nsd-control", "reload"], check=True)
diff --git a/certbot/cleanup-hook b/certbot/cleanup-hook
index 01b097c..613936b 100755
--- a/certbot/cleanup-hook
+++ b/certbot/cleanup-hook
@@ -63,7 +63,7 @@ def main():
for built_zone in os.listdir(f"{tmpdir}/built"):
zone_name, zone_ext = os.path.splitext(built_zone)
- if zone_ext == "signed":
+ if zone_ext == ".signed":
shutil.copyfile(f"{tmpdir}/built/{built_zone}", f"/var/lib/nsd/master/{zone_name}")
subprocess.run(["sudo", "/usr/sbin/nsd-control", "reload"], check=True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]