Skip to content

Commit 1a9ffb1

Browse files
committed
refactor.
1 parent 5e4ce73 commit 1a9ffb1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

custom-domain/dstack-ingress/scripts/certman.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def install_plugin(self) -> bool:
102102

103103
# Verify plugin installation
104104
try:
105-
imported_module = __import__(self.provider.CERTBOT_PLUGIN_MODULE)
105+
__import__(self.provider.CERTBOT_PLUGIN_MODULE)
106106
print(f"Plugin {self.provider.CERTBOT_PLUGIN} successfully imported")
107107

108108
# Test if plugin is recognized by certbot
@@ -149,8 +149,6 @@ def install_plugin(self) -> bool:
149149
except Exception as e:
150150
print(f"Plugin verification warning: {e}")
151151
return True
152-
153-
return True
154152

155153
def _ensure_certbot_in_env(self) -> None:
156154
"""Ensure certbot is installed in the current Python environment."""

0 commit comments

Comments
 (0)