From 4bdbbed49cf594bc8a7edc796e7d05e711e251e0 Mon Sep 17 00:00:00 2001 From: Constantin Date: Mon, 5 Dec 2016 16:50:48 +0000 Subject: [PATCH] Fix: convert owner_ids to a list of strings (#3488) --- lib/ansible/modules/extras/cloud/amazon/ec2_snapshot_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_snapshot_facts.py b/lib/ansible/modules/extras/cloud/amazon/ec2_snapshot_facts.py index 357a1692d89..2ce0619441f 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_snapshot_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_snapshot_facts.py @@ -172,7 +172,7 @@ from ansible.module_utils.ec2 import (ansible_dict_to_boto3_filter_list, def list_ec2_snapshots(connection, module): snapshot_ids = module.params.get("snapshot_ids") - owner_ids = module.params.get("owner_ids") + owner_ids = map(str, module.params.get("owner_ids")) restorable_by_user_ids = module.params.get("restorable_by_user_ids") filters = ansible_dict_to_boto3_filter_list(module.params.get("filters"))