diff options
Diffstat (limited to 'opendc/api/v2/tiles')
4 files changed, 11 insertions, 11 deletions
diff --git a/opendc/api/v2/tiles/tileId/endpoint.py b/opendc/api/v2/tiles/tileId/endpoint.py index 85cbd9f4..4a1a5447 100644 --- a/opendc/api/v2/tiles/tileId/endpoint.py +++ b/opendc/api/v2/tiles/tileId/endpoint.py @@ -12,7 +12,7 @@ def GET(request): request.check_required_parameters(path={'tileId': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database @@ -44,7 +44,7 @@ def DELETE(request): request.check_required_parameters(path={'tileId': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database diff --git a/opendc/api/v2/tiles/tileId/rack/endpoint.py b/opendc/api/v2/tiles/tileId/rack/endpoint.py index 0e1017e8..2a5803e4 100644 --- a/opendc/api/v2/tiles/tileId/rack/endpoint.py +++ b/opendc/api/v2/tiles/tileId/rack/endpoint.py @@ -13,7 +13,7 @@ def GET(request): request.check_required_parameters(path={'tileId': 'int'}, ) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database @@ -59,7 +59,7 @@ def POST(request): }}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database @@ -112,7 +112,7 @@ def PUT(request): }}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database @@ -160,7 +160,7 @@ def DELETE(request): request.check_required_parameters(path={'tileId': 'int'}, ) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Tile from the database diff --git a/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py b/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py index 1ff25f44..34d3866e 100644 --- a/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py +++ b/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py @@ -13,7 +13,7 @@ def GET(request): request.check_required_parameters(path={'tileId': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Rack from the database @@ -59,7 +59,7 @@ def POST(request): }) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Rack from the database diff --git a/opendc/api/v2/tiles/tileId/rack/machines/position/endpoint.py b/opendc/api/v2/tiles/tileId/rack/machines/position/endpoint.py index d82014b3..e769a049 100644 --- a/opendc/api/v2/tiles/tileId/rack/machines/position/endpoint.py +++ b/opendc/api/v2/tiles/tileId/rack/machines/position/endpoint.py @@ -13,7 +13,7 @@ def GET(request): request.check_required_parameters(path={'tileId': 'int', 'position': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Machine from the database @@ -57,7 +57,7 @@ def PUT(request): }) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Machine from the database @@ -115,7 +115,7 @@ def DELETE(request): request.check_required_parameters(path={'tileId': 'int', 'position': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Machine from the database |
