So this failed to land in a new and interesting way compared to the off-by-one in this code that I just did the drive-by fix for earlier today (which should also be backported).
It seems this is happening because the test is comparing the JSON *string*, and for whatever reason the version of Python in MAAS 2.3 isn't outputting the JSON fields in the same order!
I would suggest fixing this per the inline comment below (and also backporting the off-by-one fix).
So this failed to land in a new and interesting way compared to the off-by-one in this code that I just did the drive-by fix for earlier today (which should also be backported).
https:/ /paste. ubuntu. com/p/XkWZSGYKm 3/
It seems this is happening because the test is comparing the JSON *string*, and for whatever reason the version of Python in MAAS 2.3 isn't outputting the JSON fields in the same order!
I would suggest fixing this per the inline comment below (and also backporting the off-by-one fix).