summaryrefslogtreecommitdiffstats
path: root/lib/modules/postmulti
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-02-05 23:51:13 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-02-05 23:51:13 +0100
commitc19f6525465065496c485a5084a86707e4923580 (patch)
treeeca4439d3eb4fba5427dbae28f7a51e143af91e9 /lib/modules/postmulti
parentfc337924c7e66258319c6b6d538660240cfeda5e (diff)
Port custom modules to python3.
Diffstat (limited to 'lib/modules/postmulti')
-rw-r--r--lib/modules/postmulti4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/postmulti b/lib/modules/postmulti
index d6ecb09..3c0a522 100644
--- a/lib/modules/postmulti
+++ b/lib/modules/postmulti
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Create and manage postfix instances.
# Copyright (c) 2013 Guilhem Moulin <guilhem@fripost.org>
@@ -94,7 +94,7 @@ def main():
module.exit_json(changed=changed)
- except subprocess.CalledProcessError, e:
+ except subprocess.CalledProcessError as e:
module.fail_json(rv=e.returncode, msg=e.output.rstrip())