Skip to content

Commit

Permalink
[JENKINS-70074] computer/api results in an error when authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored and MarkEWaite committed Nov 15, 2022
1 parent 5add521 commit 8fe7c09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public Object data(Computer c) {

if (!isIgnored() && jvmVersionComparator.isNotCompatible()) {
if (disconnect) {
LOGGER.warning(Messages.JVMVersionMonitor_MarkedOffline(c.getName(), CONTROLLER_VERSION, agentVersion));
LOGGER.warning(Messages.JVMVersionMonitor_MarkedOffline(c.getName(), CONTROLLER_VERSION, agentVersionStr));
((JvmVersionDescriptor) getDescriptor()).markOffline(c, OfflineCause.create(
Messages._JVMVersionMonitor_OfflineCause()));
} else {
LOGGER.finer(
"Version incompatibility detected, but keeping the agent '" + c.getName() + "' online per the node monitor configuration");
}
}
return agentVersion;
return agentVersionStr;
}

public JVMVersionComparator.ComparisonMode getComparisonMode() {
Expand Down

0 comments on commit 8fe7c09

Please sign in to comment.