Fix if-condition in DecortController.pfw_configure method for excluding case of TypeError

rc-5.3.0^2
Dmitriy Smirnov 9 months ago
parent 7f87642b47
commit 007c7f4bad

@ -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'])

Loading…
Cancel
Save