Changeset 82369 in vbox
- Timestamp:
- Dec 4, 2019 9:52:43 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
-
VBoxManageAppliance.cpp (modified) (5 diffs)
-
VBoxManageCloud.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r82366 r82369 1551 1551 // pVSD->RemoveDescriptionByType(VirtualSystemDescriptionType_Name); 1552 1552 pVSD->AddDescription(VirtualSystemDescriptionType_Name, 1553 Bstr(itD->second).raw(), 1554 Bstr(itD->second).raw()); 1553 Bstr(itD->second).raw(), NULL); 1555 1554 } 1556 1555 else if (itD->first == "product") 1557 1556 pVSD->AddDescription(VirtualSystemDescriptionType_Product, 1558 Bstr(itD->second).raw(), 1559 Bstr(itD->second).raw()); 1557 Bstr(itD->second).raw(), NULL); 1560 1558 else if (itD->first == "producturl") 1561 1559 pVSD->AddDescription(VirtualSystemDescriptionType_ProductUrl, 1562 Bstr(itD->second).raw(), 1563 Bstr(itD->second).raw()); 1560 Bstr(itD->second).raw(), NULL); 1564 1561 else if (itD->first == "vendor") 1565 1562 pVSD->AddDescription(VirtualSystemDescriptionType_Vendor, 1566 Bstr(itD->second).raw(), 1567 Bstr(itD->second).raw()); 1563 Bstr(itD->second).raw(), NULL); 1568 1564 else if (itD->first == "vendorurl") 1569 1565 pVSD->AddDescription(VirtualSystemDescriptionType_VendorUrl, 1570 Bstr(itD->second).raw(), 1571 Bstr(itD->second).raw()); 1566 Bstr(itD->second).raw(), NULL); 1572 1567 else if (itD->first == "version") 1573 1568 pVSD->AddDescription(VirtualSystemDescriptionType_Version, 1574 Bstr(itD->second).raw(), 1575 Bstr(itD->second).raw()); 1569 Bstr(itD->second).raw(), NULL); 1576 1570 else if (itD->first == "description") 1577 1571 pVSD->AddDescription(VirtualSystemDescriptionType_Description, 1578 Bstr(itD->second).raw(), 1579 Bstr(itD->second).raw()); 1572 Bstr(itD->second).raw(), NULL); 1580 1573 else if (itD->first == "eula") 1581 1574 pVSD->AddDescription(VirtualSystemDescriptionType_License, 1582 Bstr(itD->second).raw(), 1583 Bstr(itD->second).raw()); 1575 Bstr(itD->second).raw(), NULL); 1584 1576 else if (itD->first == "eulafile") 1585 1577 { … … 1592 1584 Bstr bstrContent((char*)pvFile, cbFile); 1593 1585 pVSD->AddDescription(VirtualSystemDescriptionType_License, 1594 bstrContent.raw(), 1595 bstrContent.raw()); 1586 bstrContent.raw(), NULL); 1596 1587 RTFileReadAllFree(pvFile, cbFile); 1597 1588 } … … 1606 1597 else if (itD->first == "cloudshape") 1607 1598 pVSD->AddDescription(VirtualSystemDescriptionType_CloudInstanceShape, 1608 Bstr(itD->second).raw(), 1609 Bstr(itD->second).raw()); 1599 Bstr(itD->second).raw(), NULL); 1610 1600 else if (itD->first == "clouddomain") 1611 1601 pVSD->AddDescription(VirtualSystemDescriptionType_CloudDomain, 1612 Bstr(itD->second).raw(), 1613 Bstr(itD->second).raw()); 1602 Bstr(itD->second).raw(), NULL); 1614 1603 else if (itD->first == "clouddisksize") 1615 1604 pVSD->AddDescription(VirtualSystemDescriptionType_CloudBootDiskSize, 1616 Bstr(itD->second).raw(), 1617 Bstr(itD->second).raw()); 1605 Bstr(itD->second).raw(), NULL); 1618 1606 else if (itD->first == "cloudbucket") 1619 1607 pVSD->AddDescription(VirtualSystemDescriptionType_CloudBucket, 1620 Bstr(itD->second).raw(), 1621 Bstr(itD->second).raw()); 1608 Bstr(itD->second).raw(), NULL); 1622 1609 else if (itD->first == "cloudocivcn") 1623 1610 pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCIVCN, 1624 Bstr(itD->second).raw(), 1625 Bstr(itD->second).raw()); 1611 Bstr(itD->second).raw(), NULL); 1626 1612 else if (itD->first == "cloudpublicip") 1627 1613 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicIP, 1628 Bstr(itD->second).raw(), 1629 Bstr(itD->second).raw()); 1614 Bstr(itD->second).raw(), NULL); 1630 1615 else if (itD->first == "cloudprivateip") 1631 1616 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPrivateIP, … … 1633 1618 else if (itD->first == "cloudprofile") 1634 1619 pVSD->AddDescription(VirtualSystemDescriptionType_CloudProfileName, 1635 Bstr(itD->second).raw(), 1636 Bstr(itD->second).raw()); 1620 Bstr(itD->second).raw(), NULL); 1637 1621 else if (itD->first == "cloudocisubnet") 1638 1622 pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCISubnet, 1639 Bstr(itD->second).raw(), 1640 Bstr(itD->second).raw()); 1623 Bstr(itD->second).raw(), NULL); 1641 1624 else if (itD->first == "cloudkeepobject") 1642 1625 pVSD->AddDescription(VirtualSystemDescriptionType_CloudKeepObject, 1643 Bstr(itD->second).raw(), 1644 Bstr(itD->second).raw()); 1626 Bstr(itD->second).raw(), NULL); 1645 1627 else if (itD->first == "cloudlaunchmode") 1646 1628 pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCILaunchMode, … … 1648 1630 else if (itD->first == "cloudlaunchinstance") 1649 1631 pVSD->AddDescription(VirtualSystemDescriptionType_CloudLaunchInstance, 1650 Bstr(itD->second).raw(), 1651 Bstr(itD->second).raw()); 1632 Bstr(itD->second).raw(), NULL); 1652 1633 } 1653 1634 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r81421 r82369 506 506 strImageId = ValueUnion.psz; 507 507 pVSD->AddDescription(VirtualSystemDescriptionType_CloudImageId, 508 Bstr(ValueUnion.psz).raw(), 509 Bstr(ValueUnion.psz).raw()); 508 Bstr(ValueUnion.psz).raw(), NULL); 510 509 break; 511 510 … … 513 512 strBootVolumeId = ValueUnion.psz; 514 513 pVSD->AddDescription(VirtualSystemDescriptionType_CloudBootVolumeId, 515 Bstr(ValueUnion.psz).raw(), 516 Bstr(ValueUnion.psz).raw()); 514 Bstr(ValueUnion.psz).raw(), NULL); 517 515 break; 518 516 case 'n': 519 517 strDisplayName = ValueUnion.psz; 520 518 pVSD->AddDescription(VirtualSystemDescriptionType_Name, 521 Bstr(ValueUnion.psz).raw(), 522 Bstr(ValueUnion.psz).raw()); 519 Bstr(ValueUnion.psz).raw(), NULL); 523 520 break; 524 521 case 'm': 525 522 pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCILaunchMode, 526 Bstr(ValueUnion.psz).raw(), 527 Bstr(ValueUnion.psz).raw()); 523 Bstr(ValueUnion.psz).raw(), NULL); 528 524 break; 529 525 case 's': 530 526 pVSD->AddDescription(VirtualSystemDescriptionType_CloudInstanceShape, 531 Bstr(ValueUnion.psz).raw(), 532 Bstr(ValueUnion.psz).raw()); 527 Bstr(ValueUnion.psz).raw(), NULL); 533 528 break; 534 529 case 'd': 535 530 pVSD->AddDescription(VirtualSystemDescriptionType_CloudDomain, 536 Bstr(ValueUnion.psz).raw(), 537 Bstr(ValueUnion.psz).raw()); 531 Bstr(ValueUnion.psz).raw(), NULL); 538 532 break; 539 533 case 'b': 540 534 pVSD->AddDescription(VirtualSystemDescriptionType_CloudBootDiskSize, 541 Bstr(ValueUnion.psz).raw(), 542 Bstr(ValueUnion.psz).raw()); 535 Bstr(ValueUnion.psz).raw(), NULL); 543 536 break; 544 537 case 'p': 545 538 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicIP, 546 Bstr(ValueUnion.psz).raw(), 547 Bstr(ValueUnion.psz).raw()); 539 Bstr(ValueUnion.psz).raw(), NULL); 548 540 break; 549 541 case 'P': 550 542 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPrivateIP, 551 Bstr(ValueUnion.psz).raw(), 552 Bstr(ValueUnion.psz).raw()); 543 Bstr(ValueUnion.psz).raw(), NULL); 553 544 break; 554 545 case 't': 555 546 pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCISubnet, 556 Bstr(ValueUnion.psz).raw(), 557 Bstr(ValueUnion.psz).raw()); 547 Bstr(ValueUnion.psz).raw(), NULL); 558 548 break; 559 549 case 'l': … … 562 552 if (strLaunch.isNotEmpty() && (strLaunch.equalsIgnoreCase("true") || strLaunch.equalsIgnoreCase("false"))) 563 553 pVSD->AddDescription(VirtualSystemDescriptionType_CloudLaunchInstance, 564 Bstr(ValueUnion.psz).raw(), 565 Bstr(ValueUnion.psz).raw()); 554 Bstr(ValueUnion.psz).raw(), NULL); 566 555 break; 567 556 } … … 569 558 strPublicSSHKey = ValueUnion.psz; 570 559 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey, 571 Bstr(ValueUnion.psz).raw(), 572 Bstr(ValueUnion.psz).raw()); 560 Bstr(ValueUnion.psz).raw(), NULL); 573 561 break; 574 562 case VINF_GETOPT_NOT_OPTION: … … 593 581 pVSD->AddDescription(VirtualSystemDescriptionType_CloudProfileName, 594 582 Bstr(pCommonOpts->profile.pszProfileName).raw(), 595 Bstr(pCommonOpts->profile.pszProfileName).raw());583 NULL); 596 584 597 585 ComObjPtr<ICloudClient> oCloudClient;
Note:
See TracChangeset
for help on using the changeset viewer.

