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