Revision 19da4325 api/servers.py
b/api/servers.py | ||
---|---|---|
120 | 120 |
d = dict(id=vm.id, name=vm.name) |
121 | 121 |
if detail: |
122 | 122 |
d['status'] = get_rsapi_state(vm) |
123 |
d['progress'] = 100 if get_rsapi_state(vm) == 'ACTIVE' else 0 |
|
123 |
d['progress'] = 100 if get_rsapi_state(vm) == 'ACTIVE' \ |
|
124 |
else vm.buildpercentage |
|
124 | 125 |
d['hostId'] = vm.hostid |
125 | 126 |
d['updated'] = util.isoformat(vm.updated) |
126 | 127 |
d['created'] = util.isoformat(vm.created) |
Also available in: Unified diff