diff --git a/src/PVE/Storage.pm b/src/PVE/Storage.pm index 0beabbc..099df2b 100755 --- a/src/PVE/Storage.pm +++ b/src/PVE/Storage.pm @@ -1107,7 +1107,7 @@ sub template_list { sub volume_list { my ($cfg, $storeid, $vmid, $content) = @_; - my @ctypes = qw(rootdir images vztmpl iso backup snippets); + my @ctypes = qw(rootdir images vztmpl iso backup snippets import); my $cts = $content ? [ $content ] : [ @ctypes ]; diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm index e086de9..7456c8e 100644 --- a/src/PVE/Storage/Plugin.pm +++ b/src/PVE/Storage/Plugin.pm @@ -319,7 +319,9 @@ PVE::JSONSchema::register_format('pve-storage-content', \&verify_content); sub verify_content { my ($ct, $noerr) = @_; - my $valid_content = valid_content_types('dir'); # dir includes all types + return $ct if $ct eq 'import'; + + my $valid_content = valid_content_types('dir'); # dir includes all other types if (!$valid_content->{$ct}) { return undef if $noerr;