]> git.proxmox.com Git - pve-container.git/commitdiff
allow disks on shared storages on replicated VMs
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 27 Jun 2017 13:00:10 +0000 (15:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 27 Jun 2017 13:24:50 +0000 (15:24 +0200)
src/PVE/API2/LXC/Config.pm

index fc027d7ffdc6bd0712943ca51f122f16cc571022..2b622b340dde32c1142e5b5a01232cd94da1ce74 100644 (file)
@@ -145,6 +145,8 @@ __PACKAGE__->register_method({
                        $format = (PVE::Storage::parse_volname($storage_cfg, $volid))[6];
                    }
                    return if PVE::Storage::storage_can_replicate($storage_cfg, $storeid, $format);
+                   my $scfg = PVE::Storage::storage_config($storage_cfg, $storeid);
+                   return if $scfg->{shared};
                }
                die "cannot add non-replicatable volume to a replicated VM\n";
            });