Cleaning up some parts of the logging branch

* Fixing some flake8 warnings
* Removing some superflous print statements
This commit is contained in:
Matthew Jones
2016-11-29 14:58:31 -05:00
parent 1921f8cf04
commit 9cecb7d870
2 changed files with 4 additions and 6 deletions

View File

@@ -15,9 +15,9 @@ def parse_config_file():
project_id, access_token, api_domain = _parse_config_file_impl(filename) project_id, access_token, api_domain = _parse_config_file_impl(filename)
if project_id is not None\ if project_id is not None \
and access_token is not None\ and access_token is not None \
and api_domain is not None: and api_domain is not None:
return project_id, access_token, api_domain return project_id, access_token, api_domain
else: else:

View File

@@ -53,8 +53,6 @@ class FactBrokerWorker(ConsumerMixin):
return (module, facts) return (module, facts)
def process_fact_message(self, body, message): def process_fact_message(self, body, message):
print body
print type(body)
hostname = body['host'] hostname = body['host']
inventory_id = body['inventory_id'] inventory_id = body['inventory_id']
facts_data = body['facts'] facts_data = body['facts']