From 039bce3938fe5ca0a49a9e4ca6e24394cd57a796 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 8 Feb 2026 13:49:07 -0600 Subject: [PATCH] fix: add PING enum value to generated protobuf module The protobuf Elixir module was missing the PING (value 4) enum entry, causing encoding errors when building jobs for agents. Manually added the field since protoc-gen-elixir has asdf version issues. The generated module now matches the updated agent.proto definition. Fixes: ** (Protobuf.EncodeError) no function clause matching in Towerops.Agent.JobType Co-Authored-By: Claude Sonnet 4.5 --- lib/towerops/proto/agent.pb.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/towerops/proto/agent.pb.ex b/lib/towerops/proto/agent.pb.ex index 13875219..40ff5ace 100644 --- a/lib/towerops/proto/agent.pb.ex +++ b/lib/towerops/proto/agent.pb.ex @@ -233,6 +233,7 @@ defmodule Towerops.Agent.JobType do field :POLL, 1 field :MIKROTIK, 2 field :TEST_CREDENTIALS, 3 + field :PING, 4 end defmodule Towerops.Agent.QueryType do