Skip to content

Commit

Permalink
Fix comparision strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Nov 13, 2024
1 parent 9e1bf70 commit f91f5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/bin/wifi_client_test_netplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def generate_test_config(interface, ssid, psk, address, dhcp, wpa3, renderer):
# If psk is provided, add it to the "auth" section
if psk:
ubuntu_version = get_ubuntu_version()
if ubuntu_version and ubuntu_version == "16.04":
if ubuntu_version and "16" in ubuntu_version:
access_point[ssid] = {"password": psk}
else:
access_point[ssid] = {"auth": {"password": psk}}
Expand Down

0 comments on commit f91f5b8

Please sign in to comment.