Пример #1
0
def release_ccf_kit(form):
    log_kit_release(form, product='ccf')
    bookings = get_kit_bookings()
    for deployment in form.deployments:
        for node in deployment['nodes']:
            if node.data:
                bookings['ccf'][deployment['name']]['nodes'][node.name]['available'] = True
        update_deployment_availability('ccf', deployment, bookings)
    store_kit_bookings(bookings)
Пример #2
0
def book_ccf_kit(form):
    log_ccf_kit_booking(form)
    bookings = get_kit_bookings()
    # clearwater specific
    for deployment in form.deployments:

        for node in deployment['nodes']:
            if node.data:
                bookings['ccf'][deployment['name']]['nodes'][
                    node.name]['available'] = False
                bookings['ccf'][deployment['name']]['nodes'][
                    node.name]['tooltip'] = generate_tooltip(form)

            update_deployment_availability('ccf', deployment, bookings)
    store_kit_bookings(bookings)