mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Clarify the thing about current_value vs value
This commit is contained in:
parent
744f963508
commit
b47d2c7476
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,7 @@ class ConfigPanel:
|
||||||
value = self.values[option["name"]]
|
value = self.values[option["name"]]
|
||||||
|
|
||||||
# Allow to use value instead of current_value in app config script.
|
# Allow to use value instead of current_value in app config script.
|
||||||
|
# e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'`
|
||||||
# For example hotspot used it...
|
# For example hotspot used it...
|
||||||
# See https://github.com/YunoHost/yunohost/pull/1546
|
# See https://github.com/YunoHost/yunohost/pull/1546
|
||||||
if isinstance(value, dict) and "value" in value and "current_value" not in value:
|
if isinstance(value, dict) and "value" in value and "current_value" not in value:
|
||||||
|
|
Loading…
Add table
Reference in a new issue