Port vca_nat and vca_fw to py3 compatible syntax (#2243)

Since they both depend on library that cannot run on python2.4,
cf https://github.com/ansible/ansible/pull/15870, we can use
directly the python 2.6 syntax, as seen on the porting doc.
reviewable/pr18780/r1
Michael Scherer 9 years ago committed by Toshio Kuratomi
parent c8864c3220
commit 84ec0c8faf

@ -184,7 +184,7 @@ def main():
try:
desired_rules = validate_fw_rules(fw_rules)
except VcaError, e:
except VcaError as e:
module.fail_json(msg=e.message)
result = dict(changed=False)

@ -154,7 +154,7 @@ def main():
try:
desired_rules = validate_nat_rules(nat_rules)
except VcaError, e:
except VcaError as e:
module.fail_json(msg=e.message)
rules = gateway.get_nat_rules()

Loading…
Cancel
Save