From 9cecb7d8703422c736e50cd362d81eb08857df75 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 29 Nov 2016 14:58:31 -0500 Subject: [PATCH] Cleaning up some parts of the logging branch * Fixing some flake8 warnings * Removing some superflous print statements --- awx/main/log_utils/utils.py | 8 ++++---- awx/main/management/commands/run_fact_cache_receiver.py | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/awx/main/log_utils/utils.py b/awx/main/log_utils/utils.py index 81b1d397c7..a57515888f 100644 --- a/awx/main/log_utils/utils.py +++ b/awx/main/log_utils/utils.py @@ -15,9 +15,9 @@ def parse_config_file(): project_id, access_token, api_domain = _parse_config_file_impl(filename) - if project_id is not None\ - and access_token is not None\ - and api_domain is not None: + if project_id is not None \ + and access_token is not None \ + and api_domain is not None: return project_id, access_token, api_domain else: @@ -54,4 +54,4 @@ def _parse_config_file_impl(filename): def get_config_from_env(): return (os.environ.get('SPLUNK_PROJECT_ID', None), os.environ.get('SPLUNK_ACCESS_TOKEN', None), - os.environ.get('SPLUNK_API_DOMAIN', None)) \ No newline at end of file + os.environ.get('SPLUNK_API_DOMAIN', None)) diff --git a/awx/main/management/commands/run_fact_cache_receiver.py b/awx/main/management/commands/run_fact_cache_receiver.py index 3d962243f0..a0082416c2 100644 --- a/awx/main/management/commands/run_fact_cache_receiver.py +++ b/awx/main/management/commands/run_fact_cache_receiver.py @@ -53,8 +53,6 @@ class FactBrokerWorker(ConsumerMixin): return (module, facts) def process_fact_message(self, body, message): - print body - print type(body) hostname = body['host'] inventory_id = body['inventory_id'] facts_data = body['facts']