diff --git a/apps/fz_http/lib/fz_http/devices.ex b/apps/fz_http/lib/fz_http/devices.ex index 097195ff0..fc120e889 100644 --- a/apps/fz_http/lib/fz_http/devices.ex +++ b/apps/fz_http/lib/fz_http/devices.ex @@ -187,12 +187,12 @@ defmodule FzHttp.Devices do defp persistent_keepalives_config(device) do pk = persistent_keepalives(device) - pk && "PersistentKeepalives = #{pk}" + pk && "PersistentKeepalive = #{pk}" if is_nil(pk) do "" else - "PersistentKeepalives = #{pk}" + "PersistentKeepalive = #{pk}" end end diff --git a/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs b/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs index 1a4cbdec5..48a2178c6 100644 --- a/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs +++ b/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs @@ -197,7 +197,7 @@ defmodule FzHttpWeb.DeviceLive.ShowTest do assert flash["info"] == "Device updated successfully." {:ok, _view, html} = live(conn, path) - assert html =~ "PersistentKeepalives = 120" + assert html =~ "PersistentKeepalive = 120" end test "prevents empty names", %{authed_conn: conn, device: device} do