diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
commit | c19f6525465065496c485a5084a86707e4923580 (patch) | |
tree | eca4439d3eb4fba5427dbae28f7a51e143af91e9 /lib/modules/postmap | |
parent | fc337924c7e66258319c6b6d538660240cfeda5e (diff) |
Port custom modules to python3.
Diffstat (limited to 'lib/modules/postmap')
-rw-r--r-- | lib/modules/postmap | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/postmap b/lib/modules/postmap index 8c9d54c..ce09018 100644 --- a/lib/modules/postmap +++ b/lib/modules/postmap @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Create or update postfix's alias and lookup tables # Copyright (c) 2013 Guilhem Moulin <guilhem@fripost.org> @@ -97,7 +97,7 @@ def main(): changed = True if not module.check_mode: msg = compile( cmd, instance, db, src) - except subprocess.CalledProcessError, e: + except subprocess.CalledProcessError as e: module.fail_json(rv=e.returncode, msg=e.output.rstrip()) changed = module.set_file_attributes_if_different(file_args, changed) |