PR#1960: user proper type for buildroot state comparison
Merges #1960 https://pagure.io/koji/pull-request/1960 Fixes: #1959 https://pagure.io/koji/issue/1959 setState fails on integer buildroot state
This commit is contained in:
commit
422f9db76c
1 changed files with 1 additions and 1 deletions
|
|
@ -12557,7 +12557,7 @@ class BuildRoot(object):
|
|||
if koji.BR_STATES[row['state']] == 'EXPIRED':
|
||||
#we will quietly ignore a request to expire an expired buildroot
|
||||
#otherwise this is an error
|
||||
if state == 'EXPIRED':
|
||||
if koji.BR_STATES[state] == 'EXPIRED':
|
||||
return
|
||||
else:
|
||||
raise koji.GenericError("buildroot %i is EXPIRED" % self.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue