Skip to content

Commit

Permalink
Reuse old variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxbil committed Jul 28, 2020
1 parent 3faf77b commit 5f7d09c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proxmoxdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,11 @@ func (d *Driver) Create() error {
switch d.ProvisionStrategy {
case "cdrom":

completeFilename := "vm-" + d.VMID + d.StorageFilename
// prefixing StorageFilename with VMID
d.StorageFilename = "vm-" + d.VMID + d.StorageFilename

volume := NodesNodeStorageStorageContentPostParameter{
Filename: completeFilename,
Filename: d.StorageFilename,
Size: d.DiskSize + "G",
VMID: d.VMID,
}
Expand Down

0 comments on commit 5f7d09c

Please sign in to comment.