From 2b9659945cdf7c1e56447e47a9a74253edad87f0 Mon Sep 17 00:00:00 2001 From: Tony Kinsley Date: Wed, 2 Nov 2016 13:45:13 -0700 Subject: [PATCH] Resolves #18312 python3 support for ec2.py (cherry picked from commit 73da2663a3d0129f1b329995fe72d2e1c74c4aae) --- contrib/inventory/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index 3def6037a1f..dcc369e1249 100755 --- a/contrib/inventory/ec2.py +++ b/contrib/inventory/ec2.py @@ -1313,7 +1313,7 @@ class Ec2Inventory(object): elif key == 'ec2_tags': for k, v in value.items(): if self.expand_csv_tags and ',' in v: - v = map(lambda x: x.strip(), v.split(',')) + v = list(map(lambda x: x.strip(), v.split(','))) key = self.to_safe('ec2_tag_' + k) instance_vars[key] = v elif key == 'ec2_groups':