commit | ae7e3ed68433bc63fa038b8aa6499dff7ee12378 | [log] [tgz] |
---|---|---|
author | Tim Windelschmidt <tim@monogon.tech> | Mon Apr 17 23:15:39 2023 +0200 |
committer | Tim Windelschmidt <tim@monogon.tech> | Tue Apr 18 11:59:09 2023 +0000 |
tree | 78277ced320474a4b0ca06f62cf9cd034b41750e | |
parent | 51350b0cc10f2647be9831832eabc3030f9181af [diff] |
cloud/bmaa/reflection: add ORDER BY machine_id Change-Id: Icfaf0f21ac4a1591c73a5fd3cc3d4a2cac01a8f6 Reviewed-on: https://review.monogon.dev/c/monogon/+/1550 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/cloud/bmaas/bmdb/reflection/reflection.go b/cloud/bmaas/bmdb/reflection/reflection.go index 6a45d27..ebebed1 100644 --- a/cloud/bmaas/bmdb/reflection/reflection.go +++ b/cloud/bmaas/bmdb/reflection/reflection.go
@@ -111,6 +111,7 @@ q = append(q, "WHERE machines.machine_id = $1") args = append(args, *opts.FilterMachine) } + q = append(q, "ORDER BY machines.machine_id") rows, err := r.db.QueryContext(ctx, strings.Join(q, "\n"), args...) if err != nil {