"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zun/api/controllers/v1/views/hosts_view.py" between
zun-2.1.0.tar.gz and zun-3.0.0.tar.gz

About: OpenStack Zun is a Container Management service for OpenStack.
The "Stein" series (latest release).

hosts_view.py  (zun-2.1.0):hosts_view.py  (zun-3.0.0)
skipping to change at line 35 skipping to change at line 35
'os_type', 'os_type',
'os', 'os',
'kernel_version', 'kernel_version',
'labels', 'labels',
'mem_used', 'mem_used',
'cpu_used', 'cpu_used',
'disk_used', 'disk_used',
'disk_total', 'disk_total',
'disk_quota_supported', 'disk_quota_supported',
'runtimes', 'runtimes',
'enable_cpu_pinning',
) )
def format_host(url, host): def format_host(url, host):
def transform(key, value): def transform(key, value):
if key not in _basic_keys: if key not in _basic_keys:
return return
if key == 'uuid': if key == 'uuid':
yield ('uuid', value) yield ('uuid', value)
yield ('links', [link.make_link( yield ('links', [link.make_link(
'self', url, 'hosts', value), 'self', url, 'hosts', value),
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)