Skip to content

Commit

Permalink
refactor(main): rename mem to memory (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Jul 2, 2023
1 parent a9fe172 commit 53edba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apply/infra/vm/multipass.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (r *multipass) CreateVM(infra *v1.VirtualMachine, host *v1.Host, index int)
}
vmID := strings.GetID(infra.Name, host.Role, index)
if _, err := r.GetById(vmID); err != nil {
cmd := fmt.Sprintf("multipass launch --name %s --cpus %s --mem %sG --disk %sG --cloud-init %s %s %s ", strings.GetID(infra.Name, host.Role, index), host.Resources[v1.CPUKey], host.Resources[v1.MEMKey], host.Resources[v1.DISKKey], cfg, debugFlag, host.Image)
cmd := fmt.Sprintf("multipass launch --name %s --cpus %s --memory %sG --disk %sG --cloud-init %s %s %s ", strings.GetID(infra.Name, host.Role, index), host.Resources[v1.CPUKey], host.Resources[v1.MEMKey], host.Resources[v1.DISKKey], cfg, debugFlag, host.Image)
logger.Info("executing... %s \n", cmd)
return exec.Cmd("bash", "-c", cmd)
}
Expand Down

0 comments on commit 53edba5

Please sign in to comment.