fixed bug ports and listservers

This commit is contained in:
2021-04-13 20:50:02 +04:00
parent 701e72a2b4
commit b682f9d53d
6 changed files with 48 additions and 45 deletions

View File

@@ -38,7 +38,6 @@ var CliAction = func(ctx *cli.Context) error {
if CreateVM != "" {
var PortsInt int
PortsInt = 0
if Ports != "" {
// Convert Get Request value to int

View File

@@ -53,7 +53,7 @@ var AppConfigFlags = []cli.Flag{
Name: "Ports",
Usage: "Number of ports to open for the Docker Container",
EnvVars: []string{"NUM_PORTS"},
Destination: &ID,
Destination: &Ports,
},
&cli.BoolFlag{
Name: "GPU",