mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix tests: Missing mkdir on force
This commit is contained in:
parent
6c03cf2b11
commit
4fda262bc0
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ def _get_dns_zone_for_domain(domain):
|
||||||
# Check if there's a NS record for that domain
|
# Check if there's a NS record for that domain
|
||||||
answer = dig(parent, rdtype="NS", full_answers=True, resolvers="force_external")
|
answer = dig(parent, rdtype="NS", full_answers=True, resolvers="force_external")
|
||||||
if answer[0] == "ok":
|
if answer[0] == "ok":
|
||||||
mkdir(cache_folder, parents=True)
|
mkdir(cache_folder, parents=True, force=True)
|
||||||
write_to_file(cache_file, parent)
|
write_to_file(cache_file, parent)
|
||||||
return parent
|
return parent
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue