Skip to content

Commit

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

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

Expand Down

0 comments on commit 359fc7a

Please sign in to comment.