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

b/snf-cyclades-app/synnefo/api/extensions.py
52 52
    if request.method == 'GET':
53 53
        return list_extensions(request)
54 54
    else:
55
        return api.api_method_not_allowed(request)
55
        return api.api_method_not_allowed(request, allowed_methods=['GET'])
56 56

  
57 57

  
58 58
def demux_extension(request, extension_alias):
59 59
    if request.method == 'GET':
60 60
        return get_extension(request, extension_alias)
61 61
    else:
62
        return api.api_method_not_allowed(request)
62
        return api.api_method_not_allowed(request, allowed_methods=['GET'])
63 63

  
64 64

  
65 65
@api.api_method(http_method='GET', user_required=True, logger=log)

Also available in: Unified diff