From df8013182eb4da8ff9ae28974bb6fca2cfaa434a Mon Sep 17 00:00:00 2001 From: Tom Paine Date: Mon, 22 Jun 2015 14:52:45 +0100 Subject: [PATCH] Parse out space characters in route53 value list Fixes: https://github.com/ansible/ansible-modules-core/issues/992 --- lib/ansible/modules/cloud/amazon/route53.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/route53.py b/lib/ansible/modules/cloud/amazon/route53.py index e2f9880e459..a53ba127e53 100644 --- a/lib/ansible/modules/cloud/amazon/route53.py +++ b/lib/ansible/modules/cloud/amazon/route53.py @@ -293,7 +293,7 @@ def main(): if type(value_in) is str: if value_in: - value_list = sorted(value_in.split(',')) + value_list = sorted([s.strip() for s in value_in.split(',')]) elif type(value_in) is list: value_list = sorted(value_in)