Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions alertaclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class Client:

DEFAULT_ENDPOINT = 'http://localhost:8080'

def __init__(self, endpoint=None, key=None, secret=None, token=None, username=None, password=None, timeout=5.0, ssl_verify=True,
ssl_cert=None, ssl_key=None, headers=None, debug=False):
def __init__(self, endpoint=None, key=None, secret=None, token=None, username=None, password=None, timeout=5.0,
ssl_verify=True, ssl_cert=None, ssl_key=None, headers=None, debug=False):
self.endpoint = endpoint or os.environ.get('ALERTA_ENDPOINT', self.DEFAULT_ENDPOINT)

if debug:
Expand Down
1 change: 1 addition & 0 deletions alertaclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def cli(ctx, config_file, profile, endpoint_url, output, color, debug):
ctx.obj['client'] = Client(
endpoint=endpoint,
key=config.options['key'],
secret=config.options['secret'],
token=get_token(endpoint),
username=config.options.get('username', None),
password=config.options.get('password', None),
Expand Down
1 change: 1 addition & 0 deletions alertaclient/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'profile': None,
'endpoint': 'http://localhost:8080',
'key': '',
'secret': None,
'client_id': None,
'username': None,
'password': None,
Expand Down
5 changes: 5 additions & 0 deletions examples/alerta.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ key = demo-key
[profile development]
endpoint = http://localhost:8080
key = demo-key

[profile hmac-auth]
endpoint = http://localhost:9080/api
key = access-key
secret = secret-key