From a6f0e83b93e498dfecf8fb7e7ea70a3ad7c5041d Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Sat, 16 Feb 2013 08:52:51 +0100 Subject: [PATCH] template_create : check has_feature template Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index ebd7a839..58272246 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -4433,9 +4433,6 @@ sub template_create { my $storecfg = PVE::Storage::config(); my $i = 0; - # First check if all disks have feature 'clone'. - # Note: there is no feature 'create_base', but we can safely assume - # that a storage with feature 'clone' can create base images. foreach_drive($conf, sub { my ($ds, $drive) = @_; @@ -4444,7 +4441,7 @@ sub template_create { my $volid = $drive->{file}; die "volume '$volid' does not support template/clone\n" - if !PVE::Storage::volume_has_feature($storecfg, 'clone', $volid); + if !PVE::Storage::volume_has_feature($storecfg, 'template', $volid); }); foreach_drive($conf, sub {