Revision 381a548c snf-cyclades-app/synnefo/api/floating_ips.py

b/snf-cyclades-app/synnefo/api/floating_ips.py
64 64
    elif request.method == 'POST':
65 65
        return allocate_floating_ip(request)
66 66
    else:
67
        return api.api_method_not_allowed(request)
67
        return api.api_method_not_allowed(request,
68
                                          allowed_methods=['GET', 'POST'])
68 69

  
69 70

  
70 71
def floating_ip_demux(request, floating_ip_id):
......
73 74
    elif request.method == 'DELETE':
74 75
        return release_floating_ip(request, floating_ip_id)
75 76
    else:
76
        return api.api_method_not_allowed(request)
77
        return api.api_method_not_allowed(request,
78
                                          allowed_methods=['GET', 'DELETE'])
77 79

  
78 80

  
79 81
def ip_to_dict(floating_ip):

Also available in: Unified diff