From 150d08bc0f764b2c5df36c3cdb3f744f05895a92 Mon Sep 17 00:00:00 2001 From: munahaf Date: Wed, 20 Sep 2023 07:06:29 +0000 Subject: [PATCH] Comment: Fixed an inappropriate test expression to remove a logical short circuit. --- .../f5_modules/plugins/modules/bigip_provision.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_provision.py b/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_provision.py index f64b88377..621643fcb 100644 --- a/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_provision.py +++ b/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_provision.py @@ -900,7 +900,7 @@ def _wait_for_asm_ready(self): else: raise F5ModuleError(resp.content) - if len(response['items']) >= 0: + if len(response['items']) > 0: nops += 1 else: nops = 0 @@ -938,7 +938,7 @@ def _wait_for_afm_ready(self): else: raise F5ModuleError(resp.content) - if len(response['items']) >= 0: + if len(response['items']) > 0: nops += 1 else: nops = 0 @@ -974,7 +974,7 @@ def _wait_for_cgnat_ready(self): else: raise F5ModuleError(resp.content) - if len(response['items']) >= 0: + if len(response['items']) > 0: nops += 1 else: nops = 0 @@ -1010,7 +1010,7 @@ def _wait_for_mgmt_ready(self): else: raise F5ModuleError(resp.content) - if len(response['items']) >= 0: + if len(response['items']) > 0: nops += 1 else: nops = 0