VirtualBox

Ignore:
Timestamp:
Sep 5, 2018 6:29:21 PM (6 years ago)
Author:
vboxsync
Message:

OCI: Fix for makefiles. Completely breaks execution with VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS defined, which is intentional

File:
1 edited

Legend:

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

    r74086 r74092  
    23712371HRESULT Appliance::i_writeFSOCI(TaskOCI *pTask)
    23722372{
     2373    LogRel(("Appliance::i_writeFSOCI\n"));
     2374
    23732375    RT_NOREF(pTask); // XXX
    23742376    LogFlowFuncEnter();
    2375     int vrc = VINF_SUCCESS;
     2377
    23762378    HRESULT hrc = S_OK;
    23772379    ComPtr<ICloudProviderManager> cpm;
    23782380    hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam());
    2379 
    23802381    Utf8Str strProviderName("OCI");
    23812382    ComPtr<ICloudProvider> ociProvider;
     
    23882389#ifndef VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS
    23892390
     2391    int vrc = VINF_SUCCESS;
    23902392    //fills by values from m->m_OciExportData
    23912393    //mostly all names(keys) come from official OCI API documentation (see LaunchInstance description)
     
    24652467        catch (...)
    24662468        {
    2467             LogRel(("Appliance::i_writeFSOCI(): get cought unknown exception\n"));
     2469            LogRel(("Appliance::i_writeFSOCI(): get caught unknown exception\n"));
    24682470        }
    24692471
     
    24712473    }
    24722474#else
     2475    LogRel(("Appliance::i_writeFSOCI(): #ifdef VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS section \n"));
    24732476    if (SUCCEEDED(hrc))
    24742477    {
     
    24762479
    24772480        if (m->virtualSystemDescriptions.size() == 1) {
    2478             cloudClient.exportVM(m->virtualSystemDescriptions.front(), pTask->pProgress);
     2481            cloudClient->ExportVM(m->virtualSystemDescriptions.front(), pTask->pProgress);
    24792482        } else {
    24802483            //TODO: fail here
    2481         }
    2482     }
     2484        }    }
    24832485#endif
    24842486
Note: See TracChangeset for help on using the changeset viewer.

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