mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Cleaning up some parts of the logging branch
* Fixing some flake8 warnings * Removing some superflous print statements
This commit is contained in:
parent
1921f8cf04
commit
9cecb7d870
@ -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))
|
||||
|
||||
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user