From 394dba83b663adde0afc4f21d279c6dc4e96ba30 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Mon, 22 Jan 2018 14:12:50 +0800 Subject: [PATCH] Add more attributes 'mem_used' and 'cpu_used' to 'Host' API Change-Id: I55bf5e7eb3e7b5ea8218a94743000f513eabab15 Closes-Bug: #1744624 --- zun/api/controllers/v1/views/hosts_view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zun/api/controllers/v1/views/hosts_view.py b/zun/api/controllers/v1/views/hosts_view.py index ad245f4d5..5d59d99c6 100644 --- a/zun/api/controllers/v1/views/hosts_view.py +++ b/zun/api/controllers/v1/views/hosts_view.py @@ -26,7 +26,9 @@ _basic_keys = ( 'os_type', 'os', 'kernel_version', - 'labels' + 'labels', + 'mem_used', + 'cpu_used', )