]> git.proxmox.com Git - pve-manager.git/commitdiff
Fix create replication job
authorWolfgang Link <w.link@proxmox.com>
Wed, 28 Jun 2017 11:50:29 +0000 (13:50 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 28 Jun 2017 12:20:09 +0000 (14:20 +0200)
Add node to load config. this is needed if you are on an other node then the guest.

PVE/API2/ReplicationConfig.pm

index bfaeb49f60061797706049a44479726ed6d6160a..a336c9aef71109b984be748841060d8f0e49c0bf 100644 (file)
@@ -125,7 +125,7 @@ __PACKAGE__->register_method ({
            if defined($param->{target}) && !defined($nodelist->{$param->{target}});
 
        my $guest_class = $PVE::API2::Replication::lookup_guest_class->($guest_info->{type});
-       my $guest_conf = $guest_class->load_config($guest);
+       my $guest_conf = $guest_class->load_config($guest, $guest_info->{node});
        my $rep_volumes = $guest_class->get_replicatable_volumes(PVE::Storage::config(), $guest, $guest_conf, 0, 0);
        die "No replicatable volumes found\n" if !%$rep_volumes;