Skip to content

Commit

Permalink
Addressed accidental inclusion of unecessary warning filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejeda, Engelbert committed Sep 20, 2019
1 parent 013957e commit ff6e898
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions ansible_taskrunner/lib/click_extras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions ansible_taskrunner/lib/proc_mgmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions ansible_taskrunner/lib/providers/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions ansible_taskrunner/lib/providers/bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down
3 changes: 1 addition & 2 deletions ansible_taskrunner/lib/providers/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions ansible_taskrunner/lib/sshutil/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions ansible_taskrunner/lib/superduperconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit ff6e898

Please sign in to comment.