From c76a4ff422a861a1da54f45ac7d2712d81a2dbc0 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 11 Nov 2020 21:07:28 +0100 Subject: [PATCH] Revert: psk is not readable and only exists on initial (#2242) * Revert: psk is not readable and only exists on initial * fix tests --- supervisor/dbus/payloads/interface_update.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/supervisor/dbus/payloads/interface_update.tmpl b/supervisor/dbus/payloads/interface_update.tmpl index 7b1758503..3851aa127 100644 --- a/supervisor/dbus/payloads/interface_update.tmpl +++ b/supervisor/dbus/payloads/interface_update.tmpl @@ -89,12 +89,15 @@ { {% if interface.wifi.auth == "wep" %} 'auth-alg': <'none'>, - 'key-mgmt': <'none'>, + 'key-mgmt': <'none'> {% elif interface.wifi.auth == "wpa-psk" %} 'auth-alg': <'open'>, - 'key-mgmt': <'wpa-psk'>, + 'key-mgmt': <'wpa-psk'> {% endif %} + {% if interface.wifi.psk %} + , 'psk': <'{{ interface.wifi.psk }}'> + {% endif %} {% endif %} } {% endif %}