Match the agent version to the server (#3093)

* match the agent version to the server

* fix node state
This commit is contained in:
Cheick Keita
2023-05-10 13:01:49 -07:00
committed by GitHub
parent 56ca9ed55d
commit 93b582f92e
4 changed files with 6 additions and 7 deletions

View File

@ -71,11 +71,10 @@ public class AgentEvents {
} }
if (ev.State == NodeState.Free) { if (ev.State == NodeState.Free) {
if (!node.Managed) {
return null;
}
if (node.ReimageRequested || node.DeleteRequested) { if (node.ReimageRequested || node.DeleteRequested) {
if (!node.Managed) {
return null;
}
_log.Info($"stopping free node with reset flags: {machineId:Tag:MachineId}"); _log.Info($"stopping free node with reset flags: {machineId:Tag:MachineId}");
// discard result: node not used after this point // discard result: node not used after this point
_ = await _context.NodeOperations.Stop(node); _ = await _context.NodeOperations.Stop(node);

View File

@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
let mut version = read_file("../../../CURRENT_VERSION")?; let mut version = read_file("../../../CURRENT_VERSION")?;
if include_sha { if include_sha {
version.push('-'); version.push('+');
version.push_str(sha); version.push_str(sha);
// if we're a non-release build, check to see if git has // if we're a non-release build, check to see if git has

View File

@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
let mut version = read_file("../../../CURRENT_VERSION")?; let mut version = read_file("../../../CURRENT_VERSION")?;
if include_sha { if include_sha {
version.push('-'); version.push('+');
version.push_str(sha); version.push_str(sha);
// if we're a non-release build, check to see if git has // if we're a non-release build, check to see if git has

View File

@ -30,7 +30,7 @@ fn print_version(include_sha: bool, include_local: bool) -> Result<(), Box<dyn E
let sha = run_cmd(&["git", "rev-parse", "HEAD"])?; let sha = run_cmd(&["git", "rev-parse", "HEAD"])?;
if include_sha { if include_sha {
version.push('-'); version.push('+');
version.push_str(&sha); version.push_str(&sha);
// if we're a non-release build, check to see if git has // if we're a non-release build, check to see if git has