Commit 7b1f6675 authored by Jérome Perrin's avatar Jérome Perrin

proxy: return the software in the requested state

parent e1e5d4bb
...@@ -225,8 +225,11 @@ def getFullComputerInformation(): ...@@ -225,8 +225,11 @@ def getFullComputerInformation():
slap_computer = Computer(computer_id) slap_computer = Computer(computer_id)
slap_computer._software_release_list = [] slap_computer._software_release_list = []
for sr in execute_db('software', 'select * from %s WHERE computer_reference=?', [computer_id]): for sr in execute_db('software', 'select * from %s WHERE computer_reference=?', [computer_id]):
slap_computer._software_release_list.append(SoftwareRelease( software_release = SoftwareRelease(
software_release=sr['url'], computer_guid=computer_id)) software_release=sr['url'],
computer_guid=computer_id)
software_release._requested_state = sr['requested_state']
slap_computer._software_release_list.append(software_release)
slap_computer._computer_partition_list = [] slap_computer._computer_partition_list = []
for partition in execute_db('partition', 'SELECT * FROM %s WHERE computer_reference=?', [computer_id]): for partition in execute_db('partition', 'SELECT * FROM %s WHERE computer_reference=?', [computer_id]):
slap_computer._computer_partition_list.append(partitiondict2partition( slap_computer._computer_partition_list.append(partitiondict2partition(
......
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