summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/resource/views
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-27 13:06:44 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-27 13:06:44 +0800
commit04dda318d152bb45bb07dc36fc7c4aadefb31b84 (patch)
tree401ecb846c17357ebdb9fae4757d3dd716f4c8ff /windriver/titanium_cloud/resource/views
parentd1ae1cdc93d35a66254f7e5403023cfb1efcbc11 (diff)
Add UT event/alert check successfully for TC
Change-Id: Id1d966c413dbcabbec7a2bbae999028061fae4ff Issue-ID: MULTICLOUD-204 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/resource/views')
-rw-r--r--windriver/titanium_cloud/resource/views/events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/windriver/titanium_cloud/resource/views/events.py b/windriver/titanium_cloud/resource/views/events.py
index e126a1d3..0c413e57 100644
--- a/windriver/titanium_cloud/resource/views/events.py
+++ b/windriver/titanium_cloud/resource/views/events.py
@@ -71,15 +71,15 @@ class EventsCheck(APIView):
vmstate = {
'name' : servers[num]['name'],
'state' : servers[num]['OS-EXT-STS:vm_state'],
- 'power_state' : server[num]['OS-EXT-STS:power_state'],
- 'launched_at' : server[num]['OS-SRV-USG:launched_at'],
+ 'power_state' : servers[num]['OS-EXT-STS:power_state'],
+ 'launched_at' : servers[num]['OS-SRV-USG:launched_at'],
'id' : servers[num]['id'],
'host' : servers[num]['OS-EXT-SRV-ATTR:host'],
'availability_zone' : servers[num]['OS-EXT-AZ:availability_zone'],
'tenant_id' : servers[num]['tenant_id']
}
- resp_status.append(vmstate)
+ resp_vmstate.append(vmstate)
self._logger.info("RESP with data> result:%s" % resp_vmstate)
return Response(data={'result': resp_vmstate}, status=status.HTTP_200_OK)