diff --git a/centreon-plugins/apps/automation/ansible/tower/custom/api.pm b/centreon-plugins/apps/automation/ansible/tower/custom/api.pm index 312525a46..2c163cc48 100644 --- a/centreon-plugins/apps/automation/ansible/tower/custom/api.pm +++ b/centreon-plugins/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++; }