mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 09:23:23 +00:00
migration: cloudinit check: bump manager dependency and guard with cloudinit drive
The former to ensure the manager that depends on the newer qemu-server is actually installed and the latter to avoid false positives Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6622226553
commit
71cc2c4177
@ -125,9 +125,12 @@ sub prepare {
|
||||
my $version = PVE::QemuServer::Helpers::get_node_pvecfg_version($self->{node});
|
||||
my $cloudinit_config = $conf->{cloudinit};
|
||||
|
||||
if (defined($cloudinit_config) && keys %$cloudinit_config &&
|
||||
!PVE::QemuServer::Helpers::pvecfg_min_version($version, 7, 2, 5)) {
|
||||
die "target node is too old and doesn't support new cloudinit section\n";
|
||||
if (
|
||||
PVE::QemuConfig->has_cloudinit($conf) && defined($cloudinit_config)
|
||||
&& scalar(keys %$cloudinit_config) > 0
|
||||
&& !PVE::QemuServer::Helpers::pvecfg_min_version($version, 7, 2, 13)
|
||||
) {
|
||||
die "target node is too old (manager <= 7.2-13) and doesn't support new cloudinit section\n";
|
||||
}
|
||||
|
||||
my $repl_conf = PVE::ReplicationConfig->new();
|
||||
|
Loading…
Reference in New Issue
Block a user