mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Bug fixe + cleaning
This commit is contained in:
parent
8104e48e40
commit
d358452a03
3 changed files with 2 additions and 3 deletions
|
@ -448,7 +448,7 @@ domain:
|
||||||
action: store_true
|
action: store_true
|
||||||
|
|
||||||
### domain_push_config()
|
### domain_push_config()
|
||||||
push_config:
|
push-config:
|
||||||
action_help: Push DNS records to registrar
|
action_help: Push DNS records to registrar
|
||||||
api: GET /domains/<domain>/push
|
api: GET /domains/<domain>/push
|
||||||
arguments:
|
arguments:
|
||||||
|
|
|
@ -509,7 +509,7 @@ def _build_dns_conf(domain):
|
||||||
if domain_name == domain:
|
if domain_name == domain:
|
||||||
name = "@" if owned_dns_zone else root_prefix
|
name = "@" if owned_dns_zone else root_prefix
|
||||||
else:
|
else:
|
||||||
name = domain_name[0 : -(1 + len(domain))]
|
name = domain_name
|
||||||
if not owned_dns_zone:
|
if not owned_dns_zone:
|
||||||
name += "." + root_prefix
|
name += "." + root_prefix
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,6 @@ def get_dns_zone_from_domain(domain):
|
||||||
for i in range(0, len(domain_subs)):
|
for i in range(0, len(domain_subs)):
|
||||||
current_domain = separator.join(domain_subs)
|
current_domain = separator.join(domain_subs)
|
||||||
answer = dig(current_domain, rdtype="NS", full_answers=True, resolvers="force_external")
|
answer = dig(current_domain, rdtype="NS", full_answers=True, resolvers="force_external")
|
||||||
print(answer)
|
|
||||||
if answer[0] == "ok" :
|
if answer[0] == "ok" :
|
||||||
# Domain is dns_zone
|
# Domain is dns_zone
|
||||||
return current_domain
|
return current_domain
|
||||||
|
|
Loading…
Add table
Reference in a new issue