From 359fc7ab66ff8cbb67b6d351f7be236d8337a291 Mon Sep 17 00:00:00 2001 From: Andreas Steinel Date: Thu, 5 Dec 2019 12:55:18 +0100 Subject: [PATCH] Another possible solution for #16 --- proxmoxdriver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmoxdriver.go b/proxmoxdriver.go index 5ee3188..4e64f96 100644 --- a/proxmoxdriver.go +++ b/proxmoxdriver.go @@ -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) }