VirtualBox

Ignore:
Timestamp:
Oct 20, 2020 1:59:45 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141024
Message:

bugref:9781. Added the placeholder @@VBOX_COND_GUEST_VERSION[>(required version)]@@. Updated the templates. Removed the obsolete function getGuestOSConditional().

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r85631 r86648  
    11131113                        case VirtualSystemDescriptionType_CloudPublicSSHKey:
    11141114                        case VirtualSystemDescriptionType_BootingFirmware:
     1115                        case VirtualSystemDescriptionType_CloudInstanceMetadata:
     1116                        case VirtualSystemDescriptionType_CloudInstanceFreeFormTags:
     1117                        case VirtualSystemDescriptionType_CloudImageFreeFormTags:
     1118
    11151119                            /** @todo  VirtualSystemDescriptionType_Miscellaneous? */
    11161120                            break;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r86153 r86648  
    123123    int vrc = RTGetOptInit(&GetState, a->argc, a->argv, s_aOptions, RT_ELEMENTS(s_aOptions), iFirst, 0);
    124124    AssertRCReturn(vrc, RTEXITCODE_FAILURE);
    125     if (a->argc == iFirst)
    126     {
    127         RTPrintf("Empty command parameter list, show help.\n");
    128         printHelp(g_pStdOut);
    129         return RTEXITCODE_SUCCESS;
    130     }
    131125
    132126    Utf8Str strCompartmentId;
     
    295289    int vrc = RTGetOptInit(&GetState, a->argc, a->argv, s_aOptions, RT_ELEMENTS(s_aOptions), iFirst, 0);
    296290    AssertRCReturn(vrc, RTEXITCODE_FAILURE);
    297     if (a->argc == iFirst)
    298     {
    299         RTPrintf("Empty command parameter list, show help.\n");
    300         printHelp(g_pStdOut);
    301         return RTEXITCODE_SUCCESS;
    302     }
    303291
    304292    Utf8Str strCompartmentId;
     
    542530
    543531    Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey;
     532    bool fKeyPresented = false;
    544533    int c;
    545534    while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0)
     
    603592                pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey,
    604593                                     Bstr(ValueUnion.psz).raw(), NULL);
     594                fKeyPresented = true;
    605595                break;
    606596            case 1001:
     
    620610        return RTEXITCODE_FAILURE;
    621611
    622     if (strPublicSSHKey.isEmpty())
    623         RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n");
     612    if ( fKeyPresented )
     613        if (strPublicSSHKey.isEmpty())
     614            RTPrintf("Warning!!! The value of the passed public SSH key is empty...\n");
     615    else
     616        return errorArgument("Parameter --public-ssh-key is absent. if there is no need to pass a key just use the form"
     617                             " '--public-ssh-key='.");
    624618
    625619    if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty())
     
    787781    };
    788782
    789     const size_t vsdHReadableArraySize = 12;//the number of items in the vsdHReadableArray
     783    const size_t vsdHReadableArraySize = 14;//the number of items in the vsdHReadableArray
    790784    vsdHReadable vsdHReadableArray[vsdHReadableArraySize] = {
    791785        {VirtualSystemDescriptionType_CloudDomain, "Availability domain = %ls\n", "Availability domain wasn't found\n"},
     
    802796        {VirtualSystemDescriptionType_CPU, "CPUs = %ls\n", "Numbers of CPUs weren't found\n"},
    803797        {VirtualSystemDescriptionType_CloudPublicIP, "Instance public IP = %ls\n", "Public IP wasn't found\n"},
    804         {VirtualSystemDescriptionType_Miscellaneous, "%ls\n", "Free-form tags or metadata weren't found\n"}
     798        {VirtualSystemDescriptionType_CloudInstanceMetadata, "%ls\n", "Metadata weren't found\n"},
     799        {VirtualSystemDescriptionType_CloudInstanceFreeFormTags, "%ls\n", "Instance free-form tags weren't found\n"},
     800        {VirtualSystemDescriptionType_CloudImageFreeFormTags, "%ls\n", "Image free-form tags weren't found\n"}
     801
    805802    };
    806803
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