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
This commit is contained in:
parent
5a98031aee
commit
a8f0d8cfda
@ -1798,6 +1798,8 @@ class Jenkins(object):
|
|||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
actual = json.loads(response)['name']
|
actual = json.loads(response)['name']
|
||||||
|
if actual == 'all':
|
||||||
|
actual = 'All'
|
||||||
if actual != short_name:
|
if actual != short_name:
|
||||||
raise JenkinsException(
|
raise JenkinsException(
|
||||||
'Jenkins returned an unexpected view name %s '
|
'Jenkins returned an unexpected view name %s '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user