VirtualBox

Changeset 74086 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 5, 2018 4:21:43 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124850
Message:

OCI: initial commit for CloudClient::exportVM function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r73975 r74086  
    23862386    hrc = ociProfile->CreateCloudClient(cloudClient.asOutParam());
    23872387
     2388#ifndef VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS
     2389
    23882390    //fills by values from m->m_OciExportData
    23892391    //mostly all names(keys) come from official OCI API documentation (see LaunchInstance description)
     
    24682470        cloudClient.setNull();
    24692471    }
     2472#else
     2473    if (SUCCEEDED(hrc))
     2474    {
     2475        LogRel(("Appliance::i_writeFSOCI(): calling OCICloudClient::exportVM\n"));
     2476
     2477        if (m->virtualSystemDescriptions.size() == 1) {
     2478            cloudClient.exportVM(m->virtualSystemDescriptions.front(), pTask->pProgress);
     2479        } else {
     2480            //TODO: fail here
     2481        }
     2482    }
     2483#endif
    24702484
    24712485    LogFlowFuncLeave();
    24722486    return hrc;
    24732487}
    2474 
    24752488/**
    24762489 * Writes the Oracle Public Cloud appliance.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette