Skip to content

Commit

Permalink
PMM-13129 Original code for isPasswordSet.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Jun 27, 2024
1 parent 29d90df commit 952ecef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions managed/services/management/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ func (s *AgentService) agentToAPI(agent *models.Agent) (*agentv1beta1.UniversalA
Disabled: agent.Disabled,
DisabledCollectors: agent.DisabledCollectors,
IsConnected: s.r.IsConnected(agent.AgentID),
IsAgentPasswordSet: pointer.GetString(agent.AgentPassword) != "",
IsAwsSecretKeySet: pointer.GetString(agent.AWSSecretKey) != "",
IsPasswordSet: pointer.GetString(agent.Password) != "",
IsAgentPasswordSet: agent.AgentPassword != nil,
IsAwsSecretKeySet: agent.AWSSecretKey != nil,
IsPasswordSet: agent.Password != nil,
ListenPort: uint32(pointer.GetUint16(agent.ListenPort)),
LogLevel: pointer.GetString(agent.LogLevel),
MaxQueryLength: agent.MaxQueryLength,
Expand Down

0 comments on commit 952ecef

Please sign in to comment.