mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Combine bind section regex with bind panel file
This commit is contained in:
parent
79e620ef42
commit
dcafac1913
1 changed files with 10 additions and 1 deletions
|
@ -142,7 +142,16 @@ for panel_name, panel in loaded_toml.items():
|
||||||
bind_panel = panel.get('bind')
|
bind_panel = panel.get('bind')
|
||||||
for section_name, section in panel.items():
|
for section_name, section in panel.items():
|
||||||
if not isinstance(section, dict): continue
|
if not isinstance(section, dict): continue
|
||||||
bind_section = section.get('bind', bind_panel)
|
bind_section = section.get('bind')
|
||||||
|
if not bind_section:
|
||||||
|
bind_section = bind_panel
|
||||||
|
elif bind_section[-1] == ":" and bind_panel and ":" in bind_panel:
|
||||||
|
regex, bind_panel_file = bind_panel.split(":")
|
||||||
|
if ">" in bind_section:
|
||||||
|
bind_section = bind_section + bind_panel_file
|
||||||
|
else:
|
||||||
|
bind_section = regex + bind_section + bind_panel_file
|
||||||
|
|
||||||
for name, param in section.items():
|
for name, param in section.items():
|
||||||
if not isinstance(param, dict):
|
if not isinstance(param, dict):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue