From ff6e8981c8a79d85bccf076d781349c2374edef3 Mon Sep 17 00:00:00 2001 From: "Tejeda, Engelbert" Date: Fri, 20 Sep 2019 12:02:19 -0400 Subject: [PATCH] Addressed accidental inclusion of unecessary warning filters --- ansible_taskrunner/lib/click_extras/__init__.py | 2 -- ansible_taskrunner/lib/proc_mgmt/__init__.py | 2 -- ansible_taskrunner/lib/providers/ansible.py | 2 -- ansible_taskrunner/lib/providers/bash.py | 3 +-- ansible_taskrunner/lib/providers/vagrant.py | 3 +-- ansible_taskrunner/lib/sshutil/sync.py | 2 -- ansible_taskrunner/lib/superduperconfig/__init__.py | 2 -- 7 files changed, 2 insertions(+), 14 deletions(-) diff --git a/ansible_taskrunner/lib/click_extras/__init__.py b/ansible_taskrunner/lib/click_extras/__init__.py index 0cb6736..94788b6 100644 --- a/ansible_taskrunner/lib/click_extras/__init__.py +++ b/ansible_taskrunner/lib/click_extras/__init__.py @@ -7,8 +7,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) # Import third-party and custom modules diff --git a/ansible_taskrunner/lib/proc_mgmt/__init__.py b/ansible_taskrunner/lib/proc_mgmt/__init__.py index 5ed06e5..372b72b 100644 --- a/ansible_taskrunner/lib/proc_mgmt/__init__.py +++ b/ansible_taskrunner/lib/proc_mgmt/__init__.py @@ -29,8 +29,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) class Remote_CLIInvocation: diff --git a/ansible_taskrunner/lib/providers/ansible.py b/ansible_taskrunner/lib/providers/ansible.py index 9229f7d..d102562 100644 --- a/ansible_taskrunner/lib/providers/ansible.py +++ b/ansible_taskrunner/lib/providers/ansible.py @@ -13,8 +13,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) # Import third-party and custom modules diff --git a/ansible_taskrunner/lib/providers/bash.py b/ansible_taskrunner/lib/providers/bash.py index 0b478cf..62a3c81 100644 --- a/ansible_taskrunner/lib/providers/bash.py +++ b/ansible_taskrunner/lib/providers/bash.py @@ -10,8 +10,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) # Import third-party and custom modules @@ -53,6 +51,7 @@ def invocation(yaml_input_file=None, args=None, prefix='', raw_args='', + bastion_settings={}, kwargs={}): """Invoke commands according to provider""" logger.info('Bash Command Provider') diff --git a/ansible_taskrunner/lib/providers/vagrant.py b/ansible_taskrunner/lib/providers/vagrant.py index 7dcdecd..1134e42 100644 --- a/ansible_taskrunner/lib/providers/vagrant.py +++ b/ansible_taskrunner/lib/providers/vagrant.py @@ -9,8 +9,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) # Import third-party and custom modules @@ -56,6 +54,7 @@ def invocation(yaml_input_file=None, args=None, prefix='', raw_args='', + bastion_settings={}, kwargs={}): """Invoke commands according to provider""" logger.info('Vagrant Command Provider') diff --git a/ansible_taskrunner/lib/sshutil/sync.py b/ansible_taskrunner/lib/sshutil/sync.py index ce18bb6..d4706ac 100644 --- a/ansible_taskrunner/lib/sshutil/sync.py +++ b/ansible_taskrunner/lib/sshutil/sync.py @@ -7,8 +7,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO) # Import third-party and custom modules diff --git a/ansible_taskrunner/lib/superduperconfig/__init__.py b/ansible_taskrunner/lib/superduperconfig/__init__.py index 3e428e3..d69bef0 100644 --- a/ansible_taskrunner/lib/superduperconfig/__init__.py +++ b/ansible_taskrunner/lib/superduperconfig/__init__.py @@ -9,8 +9,6 @@ if '--debug run' in ' '.join(sys.argv): logger.setLevel(logging.DEBUG) else: - # Ignore warnings from cryptography module - warnings.filterwarnings("ignore", category=UserWarning, module='cryptography') logger.setLevel(logging.INFO)