]> git.proxmox.com Git - pve-manager-legacy.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)
commit9117c9e28120fdab2a3bab65de70efc068a70243
tree2cee17bffb2d1f68c11676988a7a0aa85cc37b97
parent9fae1aa7a6049c172bc3227d8718c6c9e8ae556f
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