mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
avoid termination message when term is internal
This commit is contained in:
@@ -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 '''
|
||||
|
||||
Reference in New Issue
Block a user