mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Match the agent version to the server (#3093)
* match the agent version to the server * fix node state
This commit is contained in:
@ -71,11 +71,10 @@ public class AgentEvents {
|
||||
}
|
||||
|
||||
if (ev.State == NodeState.Free) {
|
||||
if (node.ReimageRequested || node.DeleteRequested) {
|
||||
if (!node.Managed) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (node.ReimageRequested || node.DeleteRequested) {
|
||||
_log.Info($"stopping free node with reset flags: {machineId:Tag:MachineId}");
|
||||
// discard result: node not used after this point
|
||||
_ = await _context.NodeOperations.Stop(node);
|
||||
|
@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
|
||||
let mut version = read_file("../../../CURRENT_VERSION")?;
|
||||
|
||||
if include_sha {
|
||||
version.push('-');
|
||||
version.push('+');
|
||||
version.push_str(sha);
|
||||
|
||||
// if we're a non-release build, check to see if git has
|
||||
|
@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
|
||||
let mut version = read_file("../../../CURRENT_VERSION")?;
|
||||
|
||||
if include_sha {
|
||||
version.push('-');
|
||||
version.push('+');
|
||||
version.push_str(sha);
|
||||
|
||||
// if we're a non-release build, check to see if git has
|
||||
|
@ -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"])?;
|
||||
|
||||
if include_sha {
|
||||
version.push('-');
|
||||
version.push('+');
|
||||
version.push_str(&sha);
|
||||
|
||||
// if we're a non-release build, check to see if git has
|
||||
|
Reference in New Issue
Block a user