From 7517e6366e5801af7f6cae35eefc4d684cea1a00 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 2 Nov 2015 13:10:20 -0500 Subject: [PATCH] use marker instead of is_truncated which does not seem to work --- lib/ansible/modules/cloud/amazon/ec2_elb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb.py b/lib/ansible/modules/cloud/amazon/ec2_elb.py index 99b2f5a06e..f5e61f7a87 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb.py +++ b/lib/ansible/modules/cloud/amazon/ec2_elb.py @@ -268,10 +268,10 @@ class ElbManager: while True: try: newelbs = elb.get_all_load_balancers(marker=marker) - if not newelbs.is_truncated: + marker = newelbs.next_marker + if not marker: break elbs.extend(newelbs) - marker = newelbs.next_marker except TypeError: # Older version of boto do not allow for params elbs = elb.get_all_load_balancers()