reverted to comparing .index
This commit is contained in:
parent
39c2c7bcd2
commit
aebc944704
@ -217,7 +217,9 @@ class QubesBase(qubesadmin.base.PropertyHolder):
|
||||
|
||||
# then search for index
|
||||
if type(label) == int or label.isdigit():
|
||||
return self.labels.values()[int(label)]
|
||||
for i in self.labels.values():
|
||||
if i.index == int(label):
|
||||
return i
|
||||
|
||||
raise KeyError(label)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user