diff --git a/lib/towerops_web/live/device_live/show.ex b/lib/towerops_web/live/device_live/show.ex index 4c3027c4..417e58c9 100644 --- a/lib/towerops_web/live/device_live/show.ex +++ b/lib/towerops_web/live/device_live/show.ex @@ -262,7 +262,7 @@ defmodule ToweropsWeb.DeviceLive.Show do agent_token = Agents.get_agent_token!(agent_token_id) %{ - type: :agent, + type: if(agent_token.is_cloud_poller, do: :cloud, else: :agent), name: agent_token.name, source: source, last_seen_at: agent_token.last_seen_at