From aaa733d16f59bd4f70b956eab320000651e82bf9 Mon Sep 17 00:00:00 2001 From: Ahmad Bilal Khalid Date: Sat, 20 Jul 2019 15:07:12 +0500 Subject: [PATCH] fixed events->events_iterator --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 03d26d3..fe69e11 100644 --- a/main.py +++ b/main.py @@ -214,7 +214,7 @@ def main(): for events_iterator in [client.get_prefix("/v1/vm/"), client.watch_prefix("/v1/vm/", timeout=10)]: - for e in events: + for e in events_iterator: try: e.value = json.loads(e.value) except json.JSONDecodeError: