Skip to content

Conversation

@blancmatter
Copy link
Contributor

Fixes dictionary key issues in the TNS API key and also in the response from the TNS. Fully tested.

Performed as per the Contributing instructions git workflow;
Forked, Branched, Fixed, Committed, Merged, Pushed to Fork, Creation of pull request.

Hope this is all good!

'public_timestamp': public_timestamp,
})
}
print("About to send payload to TNS", data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you either remove the print statements or replace them with logging statements? Our logging is pretty poor at present, but the best example is in tom_common/hooks.py.

public_timestamp = ''
data = {
'api_key': settings.BROKER_CREDENTIALS['TNS_APIKEY'],
'api_key': settings.ALERT_CREDENTIALS['TNS']['api_key'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the move is actually going to be to call this settings BROKERS, as currently our facility info is stored in settings.FACILITIES (it holds more than just credentials). Can you make the name BROKERS instead?

@dmcollom dmcollom merged commit 41dbba5 into TOMToolkit:master Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants