From 02a6656345999c9d8568f499196856aba0f5b566 Mon Sep 17 00:00:00 2001 From: "Tejeda, Engelbert" Date: Mon, 4 Nov 2019 08:58:15 -0500 Subject: [PATCH 1/3] Add missing logger instantiation --- ansible_taskrunner/libs/bastion_mode/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ansible_taskrunner/libs/bastion_mode/__init__.py b/ansible_taskrunner/libs/bastion_mode/__init__.py index 29536d3..e565cfb 100644 --- a/ansible_taskrunner/libs/bastion_mode/__init__.py +++ b/ansible_taskrunner/libs/bastion_mode/__init__.py @@ -4,6 +4,13 @@ local_username = getpass.getuser() +# Setup Logging +logger = logging.getLogger(__name__) +if '--debug run' in ' '.join(sys.argv): + logger.setLevel(logging.DEBUG) +else: + logger.setLevel(logging.INFO) + def init_bastion_settings(kwargs): bastion_remote_path = kwargs.get('_bastion_remote_path') bastion_host = kwargs.get('_bastion_host') From 56b3ca4292a189d169937efc5d8c3a7dbcfb0563 Mon Sep 17 00:00:00 2001 From: "Tejeda, Engelbert" Date: Mon, 4 Nov 2019 08:59:34 -0500 Subject: [PATCH 2/3] Import missing logging module --- ansible_taskrunner/libs/bastion_mode/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible_taskrunner/libs/bastion_mode/__init__.py b/ansible_taskrunner/libs/bastion_mode/__init__.py index e565cfb..d5fcdd4 100644 --- a/ansible_taskrunner/libs/bastion_mode/__init__.py +++ b/ansible_taskrunner/libs/bastion_mode/__init__.py @@ -1,4 +1,5 @@ import getpass +import logging import os import sys From 685e298e17ba4d996b767e2003c071b936cd1a2b Mon Sep 17 00:00:00 2001 From: "Tejeda, Engelbert" Date: Mon, 4 Nov 2019 09:02:43 -0500 Subject: [PATCH 3/3] Bumped version to 1.3.4 --- HISTORY.md | 5 +++++ ansible_taskrunner/cli.py | 2 +- setup.cfg | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 789537e..f871f42 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,11 @@ History ======= +## Release 2019-11-04 v1.3.4 + +* Import missing logging module [56b3ca4](https://github.com/berttejeda/ansible-taskrunner/commit/56b3ca4292a189d169937efc5d8c3a7dbcfb0563) +* Add missing logger instantiation [02a6656](https://github.com/berttejeda/ansible-taskrunner/commit/02a6656345999c9d8568f499196856aba0f5b566) + ## Release 2019-11-04 v1.3.3 * Fixed bug in cli invocation when specifying taskfile override [7a07d1a](https://github.com/berttejeda/ansible-taskrunner/commit/7a07d1af4060d96a487df4a8a69e347a94deb56e) diff --git a/ansible_taskrunner/cli.py b/ansible_taskrunner/cli.py index 2226857..c8c5cc9 100644 --- a/ansible_taskrunner/cli.py +++ b/ansible_taskrunner/cli.py @@ -83,7 +83,7 @@ # Private variables __author__ = 'etejeda' -__version__ = '1.3.3' +__version__ = '1.3.4' __program_name__ = 'tasks' # Logging diff --git a/setup.cfg b/setup.cfg index b543807..8c25eac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ name = ansible_taskrunner author = Engelbert Tejeda author_email = berttejeda@gmail.com description = ansible-playbook wrapper with YAML-abstracted python click cli options -version: 1.3.3 +version: 1.3.4 url = https://github.com/berttejeda/ansible_taskrunner keywords = ansible