From 8fa0ed18d8a57e8ab2c90efa94fdbb6040dd6467 Mon Sep 17 00:00:00 2001 From: Rytis Sileika Date: Fri, 11 May 2018 16:26:52 +0100 Subject: [PATCH] Filter out unsupported session types --- sparkmagic/sparkmagic/livyclientlib/sparkcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkmagic/sparkmagic/livyclientlib/sparkcontroller.py b/sparkmagic/sparkmagic/livyclientlib/sparkcontroller.py index 6c3b6e8c0..29f74d73d 100644 --- a/sparkmagic/sparkmagic/livyclientlib/sparkcontroller.py +++ b/sparkmagic/sparkmagic/livyclientlib/sparkcontroller.py @@ -44,7 +44,7 @@ def get_all_sessions_endpoint(self, endpoint): sessions = http_client.get_sessions()[u"sessions"] session_list = [self._livy_session(http_client, {constants.LIVY_KIND_PARAM: s[constants.LIVY_KIND_PARAM]}, self.ipython_display, s[u"id"]) - for s in sessions] + for s in sessions if s[constants.LIVY_KIND_PARAM] in constants.SESSION_KINDS_SUPPORTED] for s in session_list: s.refresh_status_and_info() return session_list