Skip to content

Commit 0f43ee3

Browse files
committed
Release 5 RC1
1 parent 8f80f8b commit 0f43ee3

5 files changed

Lines changed: 37 additions & 39 deletions

File tree

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,38 @@ Usage
8989
--help Show this message and exit.
9090

9191
Commands:
92-
ack acknowledge alert
93-
blackout suppress alerts
94-
blackouts list alert suppressions
95-
close close alert
96-
customer add customer lookup
97-
customers list customer lookups
98-
delete delete alert
99-
heartbeat send a heartbeat
100-
heartbeats list heartbeats
101-
help show this help
102-
history show alert history
103-
key create API key
104-
keys list API keys
105-
login login with user credentials
106-
logout clear local login credentials
107-
perm add role-permission lookup
108-
perms list role-permission lookups
109-
query search for alerts
110-
raw show alert raw data
111-
revoke revoke API key
112-
send send an alert
113-
status display status and metrics
114-
tag tag alert
115-
token display current auth token
116-
unack un-acknowledge alert
117-
untag untag alert
118-
update update alert attributes
119-
uptime display server uptime
120-
user update user
121-
users list users
122-
version display version info
123-
whoami disply current logged in user
92+
ack Acknowledge alerts
93+
blackout Suppress alerts
94+
blackouts List alert suppressions
95+
close Close alerts
96+
customer Add customer lookup
97+
customers List customer lookups
98+
delete Delete alerts
99+
heartbeat Send a heartbeat
100+
heartbeats List heartbeats
101+
help Show this help
102+
history Show alert history
103+
key Create API key
104+
keys List API keys
105+
login Login with user credentials
106+
logout Clear login credentials
107+
perm Add role-permission lookup
108+
perms List role-permission lookups
109+
query Search for alerts
110+
raw Show alert raw data
111+
revoke Revoke API key
112+
send Send an alert
113+
status Display status and metrics
114+
tag Tag alerts
115+
token Display current auth token
116+
unack Un-acknowledge alerts
117+
untag Untag alerts
118+
update Update alert attributes
119+
uptime Display server uptime
120+
user Update user
121+
users List users
122+
version Display version info
123+
whoami Display current logged in user
124124

125125
Python SDK
126126
==========

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0-beta1
1+
5.0.0rc1

alertaclient/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def cli(ctx, config_file, profile, endpoint_url, output_format, color, debug):
6161
endpoint=endpoint,
6262
key=config.options['key'],
6363
token=get_token(endpoint),
64-
timeout=config.options['timeout'],
64+
timeout=float(config.options['timeout']),
6565
ssl_verify=config.options['sslverify'],
6666
debug=debug or config.options['debug']
6767
)

alertaclient/config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323
class Config(object):
2424

2525
def __init__(self, config_file):
26-
self.parser = configparser.RawConfigParser(defaults=default_config)
2726
self.options = default_config
27+
self.parser = configparser.RawConfigParser(defaults=self.options)
2828
config_file = config_file or os.environ.get('ALERTA_CONF_FILE') or self.options['config_file']
2929
self.parser.read(os.path.expanduser(config_file))
3030

3131
def get_config_for_profle(self, profile=None):
32-
want_profile = (profile or
33-
os.environ.get('ALERTA_DEFAULT_PROFILE') or
34-
self.parser.defaults().get('profile'))
32+
want_profile = profile or os.environ.get('ALERTA_DEFAULT_PROFILE') or self.parser.defaults().get('profile')
3533

3634
if want_profile and self.parser.has_section('profile %s' % want_profile):
3735
for opt in self.options:

alertaclient/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '5.0.0alpha1'
1+
__version__ = '5.0.0rc1'

0 commit comments

Comments
 (0)