Skip to content

Commit

Permalink
luci-app-attendedsysupgrade: enforce correct imagebuilder version
Browse files Browse the repository at this point in the history
By passing the version_code parameter, we can error out if the imagebuilder that
responded to the request isn't the same, mirroring the current behavior of auc.

Signed-off-by: Daniel Nilsson <[email protected]>
  • Loading branch information
dannil authored and aparcar committed Jun 16, 2024
1 parent 264e465 commit 8860ca0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ return view.extend({
request: {
profile,
version: candidates[0][0],
version_code: revision,
packages: Object.keys(packages).sort(),
},
};
Expand Down Expand Up @@ -536,6 +537,7 @@ return view.extend({
...firmware,
packages: mapdata.request.packages,
version: mapdata.request.version,
version_code: mapdata.request.version_code,
profile: mapdata.request.profile
};
this.pollFn = L.bind(function () {
Expand Down

0 comments on commit 8860ca0

Please sign in to comment.