Merge branch 'BANS-283' into 'rc-5.2.6'

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

See merge request rudecs/dev/decort-ansible!39
rc-5.3.0^2
commit 57dba89b5a

@ -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