Commit 2fcafafc authored by Pietsch, Martin's avatar Pietsch, Martin

bug fix in exception handling

parent dc868dc9
Pipeline #1286 failed with stages
in 9 seconds
from ansible import errors
def fbsdmfentry (entry, section, old = None):
......@@ -20,7 +19,7 @@ def fbsdmfentry (entry, section, old = None):
return retval
except Exception, e:
except Exception as e:
raise errors.AnsibleFilterError(
'fbsdentry plugin error: {0}, entry={1}, section={2}'.format(str(e), str(entry), str(section)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment