mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Revert "centralized TERM signal handling"
This reverts commit 5a88478ccc
.
is WIP, not ready for use yet
This commit is contained in:
parent
2adddac94c
commit
d9dcb2a427
3 changed files with 15 additions and 9 deletions
|
@ -27,7 +27,6 @@ import time
|
|||
import yaml
|
||||
import re
|
||||
import getpass
|
||||
import signal
|
||||
import subprocess
|
||||
|
||||
from ansible import __version__
|
||||
|
@ -78,11 +77,6 @@ class CLI(object):
|
|||
self.action = None
|
||||
self.callback = callback
|
||||
|
||||
def _terminate(self, signum=None, framenum=None):
|
||||
if signum is not None:
|
||||
display.debug("Termination signal detected, shutting down gracefully: %d" % os.getpid() )
|
||||
raise SystemExit
|
||||
|
||||
def set_action(self):
|
||||
"""
|
||||
Get the action the user wants to execute from the sys argv list.
|
||||
|
@ -115,9 +109,6 @@ class CLI(object):
|
|||
else:
|
||||
display.display(u"No config file found; using defaults")
|
||||
|
||||
# Manage user interruptions
|
||||
signal.signal(signal.SIGTERM, self._terminate)
|
||||
|
||||
@staticmethod
|
||||
def ask_vault_passwords(ask_new_vault_pass=False, rekey=False):
|
||||
''' prompt for vault password and/or password change '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue