Kevin Masterson 8a0d89c4bf Comparison exception causes quota output to fail
The key/value pairs being checked include the quota's id, and the value
is a UUID. Being that this is the only key where the value is not an
integer, this causes issues with Python 3's rules for comparisons
between different types. This manifests as a "Failed to list quota
sizes." error when viewing a region's quota information. This patch
will catch this exception and allow it to continue as before, without
modifying the value.

I opted for this method instead of just skipping 'id' at the start of
the loop since this is closer to the original behavior, and there is
already an explicit check for 'id' at the bottom before adding to the
output. This way, any future keys that also have non-int values will
be handled gracefully as well.

Change-Id: Ib44a2dca3fd0fcd7a17e721a4dd55dc961310b50
2020-12-31 16:07:41 -05:00
..
2017-05-17 15:07:34 +12:00