From b9949de79f4663f8cde6ecd8beb7eebf3aeb3ca4 Mon Sep 17 00:00:00 2001 From: Manuel Hutter Date: Fri, 14 Oct 2016 22:39:21 +0200 Subject: Do not error on node labels set too non-string values. see #2602 --- filter_plugins/oo_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py index 5358a244e..3541d5471 100644 --- a/filter_plugins/oo_filters.py +++ b/filter_plugins/oo_filters.py @@ -236,7 +236,7 @@ class FilterModule(object): if not isinstance(data, dict): raise errors.AnsibleFilterError("|failed expects first param is a dict") - return out_joiner.join([in_joiner.join([k, v]) for k, v in data.items()]) + return out_joiner.join([in_joiner.join([k, str(v)]) for k, v in data.items()]) @staticmethod def oo_ami_selector(data, image_name): -- cgit v1.2.3