Fix if-condition in DecortController.pfw_configure method for excluding case of TypeError
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user