]> git.proxmox.com Git - pve-container.git/commit
prefer storage_check_enabled over storage_check_node
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 18 Jun 2021 10:59:30 +0000 (12:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Jun 2021 08:40:27 +0000 (10:40 +0200)
commita1c27f86ab52329a9e06986d4d4a229965285a8d
treed7f949d9295c431fd7b0a2691b03a8a92e935932
parentb2c3706f17467a3d8c69087e9614ae1a152c0d56
prefer storage_check_enabled over storage_check_node

storage_check_enabled simply checks for the 'disable' option and then calls
storage_check_node.

While not strictly necessary for a second call where only the storage differs,
it is more future-proof: if support for a target storage is added at some point,
it might be easy to miss adapting the call.

For the migration checks, disabled storages are now always caught.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/API2/LXC.pm
src/PVE/LXC/Migrate.pm