From a8f0d8cfda832c700cf4ca744d07acff3afc5f04 Mon Sep 17 00:00:00 2001 From: Vsevolod Fedorov Date: Wed, 12 Jul 2023 17:46:11 +0300 Subject: [PATCH] STORY 2010790: Handle 'all' view name when requested 'All' Jenkins version 2.387.1 or earlier can return 'all' as view name when requested is 'All'. Add workaround for that. Change-Id: I6b5327a5f969607ca4838a13bbac838f44e76ccb --- jenkins/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jenkins/__init__.py b/jenkins/__init__.py index 679fe53..e62127c 100755 --- a/jenkins/__init__.py +++ b/jenkins/__init__.py @@ -1798,6 +1798,8 @@ class Jenkins(object): return None else: actual = json.loads(response)['name'] + if actual == 'all': + actual = 'All' if actual != short_name: raise JenkinsException( 'Jenkins returned an unexpected view name %s '