[pve-devel] [PATCH pve-zsync 3/5] extend send_config: now it support's container too.
Wolfgang Link
w.link at proxmox.com
Thu Nov 5 09:00:28 CET 2015
---
pve-zsync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve-zsync b/pve-zsync
index 302c33e..3af504b 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -864,7 +864,7 @@ sub send_image {
sub send_config{
my ($source, $dest, $method) = @_;
- my $source_target ="$QEMU_CONF$source->{vmid}.conf";
+ my $source_target = $source->{vm_type} eq 'qemu' ? "$QEMU_CONF$source->{vmid}.conf": "$LXC_CONF$source->{vmid}.conf";
my $dest_target_new ="$CONFIG_PATH$source->{vmid}.conf.$source->{new_snap}";
if ($method eq 'ssh'){
--
2.1.4
More information about the pve-devel
mailing list