Skip to content

Commit

Permalink
report just the agent version, dropping any sha, in the status subres
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-axway committed Oct 29, 2024
1 parent 21e255a commit 1436608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/resource/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (a *agentResourceManager) UpdateAgentStatus(status, prevStatus, message str
statusSubResourceName := management.DiscoveryAgentStatusSubResourceName
// using discovery agent status here, but all agent status resources have the same structure
agentInstance.SubResources[statusSubResourceName] = management.DiscoveryAgentStatus{
Version: config.AgentVersion,
Version: strings.Split(config.AgentVersion, "-")[0], // report just the semver version
LatestAvailableVersion: config.AgentLatestVersion,
State: status,
PreviousState: prevStatus,
Expand Down

0 comments on commit 1436608

Please sign in to comment.