Changeset 79985 in vbox
- Timestamp:
- Jul 26, 2019 12:59:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r79606 r79985 1209 1209 hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam()); 1210 1210 if (FAILED(hrc)) 1211 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found" , __FUNCTION__));1211 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found"), __FUNCTION__); 1212 1212 1213 1213 Utf8Str strProviderName = pTask->locInfo.strProvider; … … 1217 1217 1218 1218 if (FAILED(hrc)) 1219 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found" , __FUNCTION__));1219 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__); 1220 1220 1221 1221 Utf8Str profileName(parts.at(0));//profile 1222 1222 if (profileName.isEmpty()) 1223 return setErrorVrc(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found" , __FUNCTION__));1223 return setErrorVrc(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__); 1224 1224 1225 1225 hrc = cloudProvider->GetProfileByName(Bstr(parts.at(0)).raw(), cloudProfile.asOutParam()); 1226 1226 if (FAILED(hrc)) 1227 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found" , __FUNCTION__));1227 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__); 1228 1228 1229 1229 ComObjPtr<ICloudClient> cloudClient; 1230 1230 hrc = cloudProfile->CreateCloudClient(cloudClient.asOutParam()); 1231 1231 if (FAILED(hrc)) 1232 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found" , __FUNCTION__));1232 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__); 1233 1233 1234 1234 m->virtualSystemDescriptions.clear();//clear all for assurance before creating new … … 1239 1239 if (FAILED(hrc)) throw hrc; 1240 1240 if (requestedVSDnums != newVSDnums) 1241 throw setErrorVrc(VERR_MISMATCH, tr("%s: Requested and created numbers of VSD are differ." , __FUNCTION__));1241 throw setErrorVrc(VERR_MISMATCH, tr("%s: Requested and created numbers of VSD are differ."), __FUNCTION__); 1242 1242 1243 1243 hrc = getVirtualSystemDescriptions(vsdArray); … … 1306 1306 hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam()); 1307 1307 if (FAILED(hrc)) 1308 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found" , __FUNCTION__));1308 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found"), __FUNCTION__); 1309 1309 1310 1310 Utf8Str strProviderName = pTask->locInfo.strProvider; … … 1314 1314 1315 1315 if (FAILED(hrc)) 1316 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found" , __FUNCTION__));1316 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__); 1317 1317 1318 1318 /* Get the actual VSD, only one VSD object can be there for now so just call the function front() */ … … 1347 1347 GET_VSD_DESCRIPTION_BY_TYPE(VirtualSystemDescriptionType_CloudProfileName) 1348 1348 if (aVBoxValues.size() == 0) 1349 return setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud user profile name wasn't found" , __FUNCTION__));1349 return setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__); 1350 1350 1351 1351 Utf8Str profileName(aVBoxValues[0]); 1352 1352 if (profileName.isEmpty()) 1353 return setErrorVrc(VERR_INVALID_STATE, tr("%s: Cloud user profile name is empty" , __FUNCTION__));1353 return setErrorVrc(VERR_INVALID_STATE, tr("%s: Cloud user profile name is empty"), __FUNCTION__); 1354 1354 1355 1355 hrc = cloudProvider->GetProfileByName(aVBoxValues[0], cloudProfile.asOutParam()); 1356 1356 if (FAILED(hrc)) 1357 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found" , __FUNCTION__));1357 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__); 1358 1358 1359 1359 ComObjPtr<ICloudClient> cloudClient; 1360 1360 hrc = cloudProfile->CreateCloudClient(cloudClient.asOutParam()); 1361 1361 if (FAILED(hrc)) 1362 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found" , __FUNCTION__));1362 return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__); 1363 1363 1364 1364 ComPtr<IProgress> pProgress; … … 1485 1485 GET_VSD_DESCRIPTION_BY_TYPE(VirtualSystemDescriptionType_CloudInstanceId)//aVBoxValues is set in this #define 1486 1486 if (aVBoxValues.size() == 0) 1487 hrc = setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud cleanup action - the instance wasn't found" , __FUNCTION__));1487 hrc = setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud cleanup action - the instance wasn't found"), __FUNCTION__); 1488 1488 else 1489 1489 { … … 1976 1976 if (SUCCEEDED(hrc)) 1977 1977 { 1978 pTask->pProgress->SetNextOperation(BstrFmt(tr("Creating new VM '%s'" , strVMName.c_str())).raw(), 50);1978 pTask->pProgress->SetNextOperation(BstrFmt(tr("Creating new VM '%s'"), strVMName.c_str()).raw(), 50); 1979 1979 /* Create the import stack to comply OVF logic. 1980 1980 * Before we filled some other data structures which are needed by OVF logic too.*/
Note:
See TracChangeset
for help on using the changeset viewer.