Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into cache-instanceid-lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
chkeita authored Sep 29, 2022
2 parents 55e5c88 + 0c4cd54 commit fee934e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ApiService/ApiService/onefuzzlib/ScalesetOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,17 @@ public async Async.Task<Scaleset> UpdateConfigs(Scaleset scaleSet) {
}

var extensions = await _context.Extensions.FuzzExtensions(pool.OkV, scaleSet);

var res = await _context.VmssOperations.UpdateExtensions(scaleSet.ScalesetId, extensions);
if (!res.IsOk) {
_log.Info($"unable to update configs {string.Join(',', res.ErrorV.Errors!)}");
return scaleSet;
}

// successfully performed config update, save that fact:
scaleSet = scaleSet with { NeedsConfigUpdate = false };
var updateResult = await Update(scaleSet);
if (!updateResult.IsOk) {
_log.Info($"unable to set NeedsConfigUpdate to false - will try again");
}

return scaleSet;
Expand Down

0 comments on commit fee934e

Please sign in to comment.