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)
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))
os.environ.get('SPLUNK_API_DOMAIN', None))

View File

@ -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']