Revision b9a77976

b/api/servers.py
71 71
        server_meta = server.virtualmachinemetadata_set.all()
72 72
        metadata = dict((meta.meta_key, meta.meta_value) for meta in server_meta)
73 73
        if metadata:
74
            d['metadata'] = dict(values=metadata)
74
            d['metadata'] = {'values': metadata}
75 75
        
76
        d['addresses'] = [address_to_dict(server.ipfour, server.ipsix)]
76
        addresses = [address_to_dict(server.ipfour, server.ipsix)]
77
        d['addresses'] = {'values': addresses}
77 78
    return d
78 79

  
79 80
def render_server(request, serverdict, status=200):

Also available in: Unified diff