mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
More accurate way to get the plugin snap name
This commit is contained in:
parent
3967ecf98b
commit
dc145191d6
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def _list_dns_snaps_paths():
|
|||
|
||||
|
||||
def _extract_plugin_name(dns_snap_path):
|
||||
return re.match(r'^.*certbot-(dns-\w+)_.*\.snap$', dns_snap_path).group(1)
|
||||
return re.match(r'^certbot-(dns-\w+)_.*\.snap$', os.path.basename(dns_snap_path)).group(1)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, scope="module")
|
||||
|
|
|
|||
Loading…
Reference in a new issue