HomeClusterLabs Projects

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

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.