Update opsgenie.py

Added back "action_type" for test parameter to satisfy Python linting.
This commit is contained in:
jpsv 2019-01-14 18:56:13 -05:00 committed by GitHub
parent 501c8dff9c
commit 055823ed28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ def create_alert(name=None, api_key=None, reason=None, action_type="Create"):
if __opts__['test'] is True:
ret[
'comment'] = 'Test: {0} alert request will be processed ' \
'using the API Key="{1}".'.format(api_key)
'using the API Key="{1}".'.format(action_type, api_key)
# Return ``None`` when running with ``test=true``.
ret['result'] = None