Project

General

Profile

Bug #57868 ยป rbd-api.patch

Dan Poltawski, 10/14/2022 07:44 AM

View differences:

rbd-target-api.py
valid_credentials, get_remote_gateways, valid_snapshot_name,
GatewayAPIError)
app = Flask(__name__)
class RBDAPIFlask(Flask):
def process_response(self, response):
response.headers['server'] = 'rbd-api'
return(response)
app = RBDAPIFlask(__name__)
# workaround for https://github.com/pallets/flask/issues/2549
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
    (1-1/1)