Changeset 86650 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 20, 2020 2:26:02 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r86648 r86650 1113 1113 case VirtualSystemDescriptionType_CloudPublicSSHKey: 1114 1114 case VirtualSystemDescriptionType_BootingFirmware: 1115 case VirtualSystemDescriptionType_CloudInstanceMetadata:1116 case VirtualSystemDescriptionType_CloudInstanceFreeFormTags:1117 case VirtualSystemDescriptionType_CloudImageFreeFormTags:1118 1119 1115 /** @todo VirtualSystemDescriptionType_Miscellaneous? */ 1120 1116 break; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r86648 r86650 123 123 int vrc = RTGetOptInit(&GetState, a->argc, a->argv, s_aOptions, RT_ELEMENTS(s_aOptions), iFirst, 0); 124 124 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 } 125 131 126 132 Utf8Str strCompartmentId; … … 289 295 int vrc = RTGetOptInit(&GetState, a->argc, a->argv, s_aOptions, RT_ELEMENTS(s_aOptions), iFirst, 0); 290 296 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 } 291 303 292 304 Utf8Str strCompartmentId; … … 530 542 531 543 Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey; 532 bool fKeyPresented = false;533 544 int c; 534 545 while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0) … … 592 603 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey, 593 604 Bstr(ValueUnion.psz).raw(), NULL); 594 fKeyPresented = true;595 605 break; 596 606 case 1001: … … 610 620 return RTEXITCODE_FAILURE; 611 621 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='."); 622 if (strPublicSSHKey.isEmpty()) 623 RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n"); 618 624 619 625 if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty()) … … 781 787 }; 782 788 783 const size_t vsdHReadableArraySize = 1 4;//the number of items in the vsdHReadableArray789 const size_t vsdHReadableArraySize = 12;//the number of items in the vsdHReadableArray 784 790 vsdHReadable vsdHReadableArray[vsdHReadableArraySize] = { 785 791 {VirtualSystemDescriptionType_CloudDomain, "Availability domain = %ls\n", "Availability domain wasn't found\n"}, … … 796 802 {VirtualSystemDescriptionType_CPU, "CPUs = %ls\n", "Numbers of CPUs weren't found\n"}, 797 803 {VirtualSystemDescriptionType_CloudPublicIP, "Instance public IP = %ls\n", "Public IP wasn'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 804 {VirtualSystemDescriptionType_Miscellaneous, "%ls\n", "Free-form tags or metadata weren't found\n"} 802 805 }; 803 806
Note:
See TracChangeset
for help on using the changeset viewer.