mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] remove unused variable
This commit is contained in:
parent
fbfbe44cd5
commit
05e1be86c6
1 changed files with 3 additions and 6 deletions
|
@ -242,20 +242,17 @@ def domain_url_available(auth, domain, path):
|
||||||
apps_map = app_map(raw=True)
|
apps_map = app_map(raw=True)
|
||||||
|
|
||||||
# Loop through all apps to check if path is taken by one of them
|
# Loop through all apps to check if path is taken by one of them
|
||||||
available = True
|
|
||||||
if domain in apps_map:
|
if domain in apps_map:
|
||||||
# Loop through apps
|
# Loop through apps
|
||||||
for p, a in apps_map[domain].items():
|
for p, a in apps_map[domain].items():
|
||||||
if path == p:
|
if path == p:
|
||||||
available = False
|
return False
|
||||||
break
|
|
||||||
# We also don't want conflicts with other apps starting with
|
# We also don't want conflicts with other apps starting with
|
||||||
# same name
|
# same name
|
||||||
elif path.startswith(p) or p.startswith(path):
|
elif path.startswith(p) or p.startswith(path):
|
||||||
available = False
|
return False
|
||||||
break
|
|
||||||
|
|
||||||
return available
|
return True
|
||||||
|
|
||||||
|
|
||||||
def _get_maindomain():
|
def _get_maindomain():
|
||||||
|
|
Loading…
Add table
Reference in a new issue