HomeClusterLabs Projects

gcp-vpc-move-vip: Fix sort for list of dicts in python3

Description

gcp-vpc-move-vip: Fix sort for list of dicts in python3

python2 sorts a list of dicts of {'ipCidrRange': <alias>} correctly by
default. python3 fails with a TypeError:

TypeError: '<' not supported between instances of 'dict' and 'dict'

Fix this by using the key parameter of sorted(). python2 also supports
this.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Aug 18 2020, 9:43 PM
Parents
rRc3a5c7068f55: Merge pull request #1539 from kermat/kermat/filesystem-mmap-search-not-specific…
Branches
Unknown
Tags
Unknown

Event Timeline