avoid termination message when term is internal

pull/14404/head
Brian Coca 9 years ago
parent fa88d0770c
commit 18ffa8a4da

@ -91,7 +91,8 @@ class AdHocCLI(CLI):
def _terminate(self, signum=None, framenum=None):
if signum is not None:
raise SystemExit("Interrupt detected, shutting down gracefully")
display.debug("Termination signal detected, shutting down gracefully")
raise SystemExit
def run(self):
''' use Runner lib to do SSH things '''

@ -208,8 +208,8 @@ class PlaybookExecutor:
return result
def _terminate(self, signum=None, framenum=None):
display.debug(framenum)
raise SystemExit("Terminating run due to external signal")
display.debug("Termination signal detected, shutting down gracefully")
raise SystemExit
def _get_serialized_batches(self, play):
'''

Loading…
Cancel
Save