From ab4ec248132fa5abe1434994b873541f0e997b98 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 16 Jun 2016 15:55:45 -0400 Subject: [PATCH] added missing import readded raise --- utilities/logic/async_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/logic/async_wrapper.py b/utilities/logic/async_wrapper.py index 34ddaf1d895..a375c25b223 100644 --- a/utilities/logic/async_wrapper.py +++ b/utilities/logic/async_wrapper.py @@ -32,6 +32,8 @@ import signal import time import syslog +# Backwards compat. There were present in basic.py before +from ansible.module_utils.pycompat24 import get_exception syslog.openlog('ansible-%s' % os.path.basename(__file__)) syslog.syslog(syslog.LOG_NOTICE, 'Invoked with %s' % " ".join(sys.argv[1:])) @@ -200,6 +202,7 @@ if __name__ == '__main__': except SystemExit: # On python2.4, SystemExit is a subclass of Exception. # This block makes python2.4 behave the same as python2.5+ + raise except Exception: e = sys.exc_info()[1]