Skip to content

Commit 1edfbcc

Browse files
committed
Parse tag lists when using --tags (closes #7)
1 parent e576af4 commit 1edfbcc

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

riemann_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""A Python Riemann client and command line tool"""
22

3-
__version__ = '4.1.0'
3+
__version__ = '4.1.1'
44
__author__ = 'Sam Clements <sam.clements@datasift.com>'

riemann_client/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def send_function(args, client):
7979
host=args.event_host,
8080
description=args.description,
8181
service=args.service,
82-
tags=args.tags,
82+
tags=map(str.strip, args.tags.split(',')),
8383
ttl=args.ttl,
8484
metric_f=args.metric)
8585

@@ -98,7 +98,7 @@ def send_function(args, client):
9898
(['-e', '--event-host'], str, "Host"),
9999
(['-D', '--description'], str, "Description"),
100100
(['-s', '--service'], str, "Service"),
101-
(['-T', '--tags'], list, "Tags"),
101+
(['-T', '--tags'], str, "Comma seperated list of tags"),
102102
(['-l', '--ttl'], int, "Time to live"),
103103
(['-m', '--metric'], float, "Value")]
104104

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setuptools.setup(
66
name='riemann-client',
7-
version='4.1.0',
7+
version='4.1.1',
88

99
author="Sam Clements",
1010
author_email="sam.clements@datasift.com",

0 commit comments

Comments
 (0)