VirtualBox

Changeset 86714 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 26, 2020 4:38:59 PM (4 years ago)
Author:
vboxsync
Message:

The public SSH key isnt mandatory for the command "cloud instance create". Reverted 141093. Because VirtualBox just implements specific types of OCI instance creation where a SSH key may be omitted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r86709 r86714  
    530530
    531531    Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey;
    532     bool fKeyPresented = false;
    533532    int c;
    534533    while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0)
     
    592591                pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey,
    593592                                     Bstr(ValueUnion.psz).raw(), NULL);
    594                 if ( !strPublicSSHKey.isEmpty() )
    595                     fKeyPresented = true;
    596593                break;
    597594            case 1001:
     
    611608        return RTEXITCODE_FAILURE;
    612609
    613     if ( !fKeyPresented )
    614         return errorArgument("Parameter --public-ssh-key is absent. if there is no need to pass a key just use the form"
    615                              " '--public-ssh-key='.");
     610    if (strPublicSSHKey.isEmpty())
     611        RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n");
    616612
    617613    if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty())
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