diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index c01f7bd..419affa 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -675,7 +675,7 @@ def add_humbug_subscriptions(verbose): zephyr_subscriptions.add(cls) if len(zephyr_subscriptions) != 0: - res = humbug_client.add_subscriptions(list(zephyr_subscriptions)) + res = humbug_client.add_subscriptions(list({"name": stream} for stream in zephyr_subscriptions)) if res.get("result") != "success": logger.error("Error subscribing to streams:\n%s" % (res["msg"],)) return diff --git a/examples/subscribe b/examples/subscribe index 14b8931..6b4381c 100755 --- a/examples/subscribe +++ b/examples/subscribe @@ -48,4 +48,5 @@ if options.streams == "": print >>sys.stderr, "Usage:", parser.usage sys.exit(1) -print client.add_subscriptions(options.streams.split()) +print client.add_subscriptions([{"name": stream_name} for stream_name in + options.streams.split()])