Beispiel #1
0
def destroy(name):
    if not BlockadeManager.blockade_exists(name):
        abort(404)

    b = BlockadeManager.get_blockade(name)
    b.destroy()

    BlockadeManager.delete_config(name)

    return '', 204
Beispiel #2
0
def destroy(name):
    if not BlockadeManager.blockade_exists(name):
        abort(404)

    b = BlockadeManager.get_blockade(name)
    b.destroy()

    BlockadeManager.delete_config(name)

    return '', 204
Beispiel #3
0
def destroy(name):
    if not BlockadeManager.blockade_exists(name):
        abort(404)

    if _chaos.exists(name):
        try:
            _chaos.delete(name)
        except errors.BlockadeUsageError as bue:
            app.logger.error(bue)

    b = BlockadeManager.get_blockade(name)
    b.destroy()
    b.get_audit().clean()
    BlockadeManager.delete_config(name)

    return '', 204