]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
storage plugin: move get_subdir call
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Jul 2019 11:53:45 +0000 (13:53 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Jul 2019 12:04:34 +0000 (14:04 +0200)
commita14e0a5e95fa472cc08b44a9e92c3a8fca0e35eb
tree90d2e1be375c81cfd71cb5ecaa65a3859133bebb
parentc2fc9fbe1d6eaa6e190e4c80248d3434cb2f4f87
storage plugin: move get_subdir call

since list_volumes is only supposed to be called with filtered content
types, this should ensure that get_subdir is only called for plugins
that have a defined 'path' property, like the old code in
PVE::Storage::template_list did.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/Plugin.pm