Commit e16c3c3a authored by Łukasz Nowak's avatar Łukasz Nowak

Implement SoftwareRelease.getState

While using old server (which does not send _requested_state on SoftwareRelease)
it defaults to available.
parent c9788dbd
......@@ -108,6 +108,9 @@ class SoftwareRelease(SlapDocument):
'url': self._software_release,
'computer_id': self._computer_guid})
def getState(self):
return getattr(self, '_requested_state', 'available')
# XXX What is this SoftwareInstance class?
class SoftwareInstance(SlapDocument):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment