Changeset 81398 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 21, 2019 11:18:35 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 134111
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r81119 r81398 480 480 { "--privateip", 'P', RTGETOPT_REQ_STRING }, 481 481 { "--launch", 'l', RTGETOPT_REQ_STRING }, 482 { "--public-ssh-key", 'k', RTGETOPT_REQ_STRING }, 482 483 }; 483 484 RTGETOPTSTATE GetState; … … 496 497 ComPtr<IVirtualSystemDescription> pVSD = virtualSystemDescriptions[0]; 497 498 498 Utf8Str strDisplayName, strImageId, strBootVolumeId ;499 Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey; 499 500 int c; 500 501 while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0) … … 565 566 break; 566 567 } 568 case 'k': 569 strPublicSSHKey = ValueUnion.psz; 570 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey, 571 Bstr(ValueUnion.psz).raw(), 572 Bstr(ValueUnion.psz).raw()); 573 break; 567 574 case VINF_GETOPT_NOT_OPTION: 568 575 return errorUnknownSubcommand(ValueUnion.psz); … … 571 578 } 572 579 } 580 581 if (strPublicSSHKey.isEmpty()) 582 RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n"); 573 583 574 584 if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.