Update ovftool.js

This commit is contained in:
Namhyeon Go 2025-01-15 15:38:25 +09:00 committed by GitHub
parent 38b03fe026
commit daf7db76b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,13 +2,16 @@
// Namhyeon Go <abuse@catswords.net>
// https://github.com/gnh1201/welsonjs
//
// Download OVFTool (Open Virtualization Format (OVF) Tool):
// https://developer.broadcom.com/tools/open-virtualization-format-ovf-tool/latest
//
var SHELL = require("lib/shell");
var CRED = require("lib/credentials");
function OVFObject() {
this.binPath = "bin\\x64\\VMware-ovftool-4.6.3-24031167-win.x86_64\\ovftool\\ovftool.exe";
this.hostname = "";
this.port = 443;
this.port = 443;
this.resourceName = "";
this.setBinPath = function(binPath) {
@ -19,9 +22,9 @@ function OVFObject() {
this.hostname = hostname;
};
this.setPort = function(port) {
this.port = port;
};
this.setPort = function(port) {
this.port = port;
};
this.setResourceName = function(resourceName) {
this.resourceName = resourceName;
@ -41,7 +44,7 @@ function OVFObject() {
filename
];
console.log("connectionString:", connectionString);
console.log("Use this connection string:", connectionString);
// run the command synchronously
SHELL.show(cmd, false);