Merge pull request #676 from YunoHost/fix_ynh_app_setting

[fix] ynh_app_setting_get and ynh_app_setting_delete don't have a fou…
This commit is contained in:
Alexandre Aubin 2019-03-10 21:55:14 +01:00 committed by GitHub
commit 2c9d1b442d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ ynh_app_setting_delete() {
# #
ynh_app_setting() ynh_app_setting()
{ {
ACTION="$1" APP="$2" KEY="$3" VALUE="$4" python - <<EOF ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python - <<EOF
import os, yaml import os, yaml
app, action = os.environ['APP'], os.environ['ACTION'].lower() app, action = os.environ['APP'], os.environ['ACTION'].lower()
key, value = os.environ['KEY'], os.environ.get('VALUE', None) key, value = os.environ['KEY'], os.environ.get('VALUE', None)