]> git.proxmox.com Git - pve-manager.git/commit
vzdump: storage info: move out activate storage call
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 11 Mar 2021 09:22:05 +0000 (10:22 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 31 Mar 2021 13:40:13 +0000 (15:40 +0200)
commit164651dab6004e70eba8e2870575d1b2492d3ba9
treee5b92a18b8dd5b59647758c27fecce2bfc42248a
parentac7bf67282ed21d901fe2d23568921a7e38682ce
vzdump: storage info: move out activate storage call

Otherwise storage_info() cannot be used for (at least) PBS storages from an API
call without 'protected => 1', because the password cannot be read from
'/etc/pve/priv'. Note that the function itself does not need the storage to be
active, because it only uses storage_config() and get_backup_dir().

AFAICT new() is the only existing user of this function and can be responsible
for activating the storage itself.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm