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}
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}