Changeset 78605 in vbox for trunk/src/VBox
- Timestamp:
- May 20, 2019 4:54:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r78604 r78605 1404 1404 1405 1405 ComPtr<IMachine> machine; 1406 hrc = mVirtualBox->FindMachine(Bstr(strVMName.c_str()).raw(), machine.asOutParam()); 1406 hrc = mVirtualBox->FindMachine(Bstr(strVMName.c_str()).raw(), machine.asOutParam()); 1407 1407 if (SUCCEEDED(hrc)) 1408 1408 { … … 1422 1422 if (aVBoxValues.size() == 0) 1423 1423 { 1424 hrc = setErrorVrc(VERR_NOT_FOUND, "%s: Cloud Instance Id wasn't found", __FUNCTION__); 1424 hrc = setErrorVrc(VERR_NOT_FOUND, "%s: Cloud Instance Id wasn't found", __FUNCTION__); 1425 1425 break; 1426 1426 } … … 1461 1461 return hrc; 1462 1462 } 1463 1463 1464 1464 if (FAILED(hrc)) 1465 1465 { … … 1467 1467 Utf8Str generalRollBackErrorMessage("Rollback action for Import Cloud operation failed." 1468 1468 "Some leavings may exist on the local disk or in the Cloud."); 1469 /* 1469 /* 1470 1470 * Roll-back actions. 1471 1471 * we finish here if: … … 1652 1652 if (aVBoxValues.size() != 0) 1653 1653 strOsType = aVBoxValues[0]; 1654 vsys.strTypeVBox = strOsType; 1654 vsys.strTypeVBox = strOsType; 1655 1655 LogRel(("%s: OS type is %s\n", __FUNCTION__, strOsType.c_str())); 1656 1656 } … … 1966 1966 1967 1967 /* What to do here? 1968 * Delete or not the downloaded object? 1969 * For now: 1968 * Delete or not the downloaded object? 1969 * For now: 1970 1970 * - check the list of imported images, detach them and next delete. 1971 1971 * - check the registration of created VM and delete one. … … 1976 1976 * After adding extracted files into the actual VSD the returned list will contain not only the 1977 1977 * record about the downloaded object but also the records about the extracted files from this object. 1978 * It's needed to go through this list to find the record about the downloaded object. 1978 * It's needed to go through this list to find the record about the downloaded object. 1979 1979 * But it was the first record added into the list, so aVBoxValues[0] should be correct here. 1980 1980 */
Note:
See TracChangeset
for help on using the changeset viewer.