Ejemplo n.º 1
0
def service_data(request,
                 appliance,
                 a_provider,
                 service_dialog=None,
                 service_catalog=None):
    prov_service = services(request, appliance, a_provider, service_dialog,
                            service_catalog).pop()
    prov_vm = get_vms_in_service(appliance.rest_api, prov_service).pop()
    return {'service_name': prov_service.name, 'vm_name': prov_vm.name}
Ejemplo n.º 2
0
def service_data(request, appliance, a_provider, service_dialog=None, service_catalog=None):
    prov_service = services(request, appliance, a_provider, service_dialog, service_catalog).pop()
    prov_vm = get_vms_in_service(appliance.rest_api, prov_service).pop()
    return {'service_name': prov_service.name, 'vm_name': prov_vm.name}