From e73fabe1650d95a63135228817e854feaaae832a Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 6 Oct 2020 14:06:44 +0200 Subject: [PATCH] Ref #2220 --- apps/automation/ansible/tower/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/automation/ansible/tower/custom/api.pm b/apps/automation/ansible/tower/custom/api.pm index 312525a46..2c163cc48 100644 --- a/apps/automation/ansible/tower/custom/api.pm +++ b/apps/automation/ansible/tower/custom/api.pm @@ -167,7 +167,7 @@ sub request_api { push @$results, @{$decoded->{results}}; last if (!defined($decoded->{next})); - last if if (defined($options{nonext}) && $options{nonext} == 1); + last if (defined($options{nonext}) && $options{nonext} == 1); $page++; }