diff --git a/module_utils/decort_utils.py b/module_utils/decort_utils.py index 53f71c9..7eb3bd1 100644 --- a/module_utils/decort_utils.py +++ b/module_utils/decort_utils.py @@ -3136,7 +3136,7 @@ class DecortController(object): if runner['vmId'] == comp_facts['id']: existing_rules.append(runner) - if not len(existing_rules) and not len(new_rules): + if not existing_rules and not new_rules: self.result['failed'] = False self.result['warning'] = ("pfw_configure(): both existing and new port forwarding rule lists " "for Compute ID {} are empty - nothing to do.").format(comp_facts['id'])