From 941d05714648934d2c8a229763e4d808d8e63778 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Sat, 27 Feb 2016 20:22:46 -0500 Subject: [PATCH] sort querystring so that tags will get matched up properly for later zip. Closes #541. --- moto/elb/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/elb/responses.py b/moto/elb/responses.py index 934bfaef0..a55ba5382 100644 --- a/moto/elb/responses.py +++ b/moto/elb/responses.py @@ -234,7 +234,7 @@ class ELBResponse(BaseResponse): tag_values = [] tag_keys = [] - for t_key, t_val in self.querystring.items(): + for t_key, t_val in sorted(self.querystring.items()): if t_key.startswith('Tags.member.'): if t_key.split('.')[3] == 'Key': tag_keys.extend(t_val)