mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-11 13:29:19 +01:00
Implement obs_api.Status.data property that returns status data as a dictionary
This commit is contained in:
parent
8d94f068c0
commit
0d28997595
@ -40,3 +40,12 @@ class Status(XmlModel):
|
||||
"""
|
||||
),
|
||||
)
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
result = {}
|
||||
for entry in self.data_list or []:
|
||||
key = entry.name
|
||||
value = entry.value
|
||||
result[key] = value
|
||||
return result
|
||||
|
Loading…
x
Reference in New Issue
Block a user