mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🩹 — Fix the order of config files test
This commit is contained in:
parent
2380c9be7d
commit
f848748999
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ def coroutine(f):
|
||||||
|
|
||||||
|
|
||||||
def validate_config_access(ctx, param, value):
|
def validate_config_access(ctx, param, value):
|
||||||
for file in set(value, "argos-config.yaml", "/etc/argos/config.yaml"):
|
for file in list(
|
||||||
|
dict.fromkeys([value, "argos-config.yaml", "/etc/argos/config.yaml"])
|
||||||
|
):
|
||||||
path = Path(file)
|
path = Path(file)
|
||||||
|
|
||||||
if path.is_file() and os.access(path, os.R_OK):
|
if path.is_file() and os.access(path, os.R_OK):
|
||||||
|
|
Loading…
Reference in a new issue