Changeset 85281 in vbox
- Timestamp:
- Jul 12, 2020 2:44:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r84532 r85281 936 936 { 937 937 if (aLocInfo.strProvider.equals("OCI")) 938 {939 938 hrc = aProgress->init(mVirtualBox, static_cast<IAppliance *>(this), 940 939 Utf8Str(tr("Exporting VM to Cloud...")), … … 944 943 Utf8Str(tr("Exporting VM to Cloud...")), // aFirstOperationDescription 945 944 10); // ULONG ulFirstOperationWeight 946 }947 945 else 948 hrc = setError Vrc(VBOX_E_NOT_SUPPORTED,949 950 946 hrc = setError(VBOX_E_NOT_SUPPORTED, 947 tr("Only \"OCI\" cloud provider is supported for now. \"%s\" isn't supported."), 948 aLocInfo.strProvider.c_str()); 951 949 if (SUCCEEDED(hrc)) 952 950 { … … 2346 2344 hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam()); 2347 2345 if (FAILED(hrc)) 2348 return setError Vrc(VERR_COM_OBJECT_NOT_FOUND, tr("%: Cloud provider manager object wasn't found"), __FUNCTION__);2346 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("%: Cloud provider manager object wasn't found"), __FUNCTION__); 2349 2347 2350 2348 Utf8Str strProviderName = pTask->locInfo.strProvider; … … 2354 2352 2355 2353 if (FAILED(hrc)) 2356 return setError Vrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__);2354 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__); 2357 2355 2358 2356 ComPtr<IVirtualSystemDescription> vsd = m->virtualSystemDescriptions.front(); … … 2365 2363 2366 2364 hrc = vsd->GetDescriptionByType(VirtualSystemDescriptionType_CloudProfileName, 2367 ComSafeArrayAsOutParam(retTypes),2368 ComSafeArrayAsOutParam(aRefs),2369 ComSafeArrayAsOutParam(aOvfValues),2370 ComSafeArrayAsOutParam(aVBoxValues),2371 ComSafeArrayAsOutParam(aExtraConfigValues));2365 ComSafeArrayAsOutParam(retTypes), 2366 ComSafeArrayAsOutParam(aRefs), 2367 ComSafeArrayAsOutParam(aOvfValues), 2368 ComSafeArrayAsOutParam(aVBoxValues), 2369 ComSafeArrayAsOutParam(aExtraConfigValues)); 2372 2370 if (FAILED(hrc)) 2373 2371 return hrc; … … 2375 2373 Utf8Str profileName(aVBoxValues[0]); 2376 2374 if (profileName.isEmpty()) 2377 return setError Vrc(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__);2375 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__); 2378 2376 2379 2377 hrc = cloudProvider->GetProfileByName(aVBoxValues[0], cloudProfile.asOutParam()); 2380 2378 if (FAILED(hrc)) 2381 return setError Vrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__);2379 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__); 2382 2380 2383 2381 ComObjPtr<ICloudClient> cloudClient; 2384 2382 hrc = cloudProfile->CreateCloudClient(cloudClient.asOutParam()); 2385 2383 if (FAILED(hrc)) 2386 return setError Vrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__);2384 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__); 2387 2385 2388 2386 if (m->virtualSystemDescriptions.size() == 1)
Note:
See TracChangeset
for help on using the changeset viewer.