bugs, lint, testing (#967)

This commit is contained in:
Michael Quigley
2025-06-03 14:45:32 -04:00
parent 3ed97d4e90
commit 2de24beba8
6 changed files with 35 additions and 4 deletions

View File

@ -63,7 +63,7 @@ func (h *agentEnrollHandler) Handle(params agent.EnrollParams, principal *rest_m
return agent.NewEnrollInternalServerError()
}
if err := zrokEdgeSdk.CreateShareServiceEdgeRouterPolicy(env.ZId, token, zId, client); err != nil {
if err := zrokEdgeSdk.CreateAgentRemoteServiceEdgeRouterPolicy(env.ZId, token, zId, client); err != nil {
logrus.Errorf("error creating agent remoting serp for '%v' (%v): %v", env.ZId, principal.Email, err)
return agent.NewEnrollInternalServerError()
}