コード例 #1
0
ファイル: monitor.py プロジェクト: youcef-laribi/experiments
def delete_monitor_from_conf(monitor_id):

    success, errors, current_monitor = get_monitor_from_conf(monitor_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("monitor", monitor_id)

    return success, errors
コード例 #2
0
def delete_server_from_conf(server_id):

    success, errors, current_server = get_server_from_conf(server_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("server", server_id)

    return success, errors
コード例 #3
0
ファイル: monitor.py プロジェクト: ctxs-atlas/experiments
def delete_monitor_from_conf(monitor_id):

    success, errors, current_monitor = get_monitor_from_conf(monitor_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("monitor", monitor_id)
    
    return success, errors
コード例 #4
0
ファイル: listener.py プロジェクト: ctxs-atlas/experiments
def delete_listener_from_conf(listener_id):

    success, errors, current_listener = get_listener_from_conf(listener_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("listener", listener_id)
    
    return success, errors
コード例 #5
0
ファイル: server.py プロジェクト: ctxs-atlas/experiments
def delete_server_from_conf(server_id):

    success, errors, current_server = get_server_from_conf(server_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("server", server_id)
    
    return success, errors
コード例 #6
0
def delete_listener_from_conf(listener_id):

    success, errors, current_listener = get_listener_from_conf(listener_id)

    if not success:
        return False, errors

    success, errors = delete_object_config("listener", listener_id)

    return success, errors