Revision 53b0ea25 snf-cyclades-app/synnefo/api/floating_ips.py

b/snf-cyclades-app/synnefo/api/floating_ips.py
114 114
    floating_ips = map(ip_to_dict, floating_ips)
115 115

  
116 116
    request.serialization = "json"
117
    data = json.dumps({"floating_ips": floating_ips})
117
    data = json.dumps({"floatingips": floating_ips})
118 118

  
119 119
    return HttpResponse(data, status=200)
120 120

  
......
126 126
    userid = request.user_uniq
127 127
    floating_ip = util.get_floating_ip_by_id(userid, floating_ip_id)
128 128
    request.serialization = "json"
129
    data = json.dumps({"floating_ip": ip_to_dict(floating_ip)})
129
    data = json.dumps({"floatingip": ip_to_dict(floating_ip)})
130 130
    return HttpResponse(data, status=200)
131 131

  
132 132

  
......
171 171
    log.info("User '%s' allocated floating IP '%s'", userid, floating_ip)
172 172

  
173 173
    request.serialization = "json"
174
    data = json.dumps({"floating_ip": ip_to_dict(floating_ip)})
174
    data = json.dumps({"floatingip": ip_to_dict(floating_ip)})
175 175
    return HttpResponse(data, status=200)
176 176

  
177 177

  

Also available in: Unified diff