Skip to content

Commit

Permalink
Potential solution for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxbil committed Dec 5, 2019
1 parent f2d9648 commit 9279b24
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions proxmoxdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,8 @@ func (d *Driver) Create() error {
return err
}

storagefilename := d.Storage + ":" + volume.Filename

if diskname != storagefilename {
return fmt.Errorf("returned diskname is not correct:\n should be '%s' but was '%s'", storagefilename, diskname)
if diskname != d.StorageFilename {
return fmt.Errorf("returned diskname is not correct: should be '%s' but was '%s'", d.StorageFilename, diskname)
}

npp := NodesNodeQemuPostParameter{
Expand All @@ -375,7 +373,7 @@ func (d *Driver) Create() error {
Memory: d.Memory,
Cores: "4",
Net0: "virtio,bridge=vmbr0",
SCSI0: storagefilename,
SCSI0: d.StorageFilename,
Ostype: "l26",
Name: d.BaseDriver.MachineName,
KVM: "1", // if you test in a nested environment, you may have to change this to 0 if you do not have nested virtualization
Expand Down

0 comments on commit 9279b24

Please sign in to comment.