plugin: import/export formats: fix regression to unbreak import/export of 'images' content
In particular, this affects offline migration of guest volumes.
Reported in the community forum:
https://forum.proxmox.com/threads/176352/
Fixes: 0ba0739 ("plugin: allow volume import of iso, snippets, vztmpl and import")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/all/20251120121304.67944-1-f.ebner@proxmox.com
This commit is contained in:
committed by
Fabian Grünbichler
parent
a52a1ef526
commit
bb958344ec
@ -2164,7 +2164,7 @@ sub volume_export_formats {
|
||||
return ();
|
||||
}
|
||||
return ('tar+size') if $format eq 'subvol';
|
||||
return ('raw+size') if $vtype =~ /^(iso|snippets|vztmpl|import)$/;
|
||||
return ('raw+size') if $vtype =~ /^(images|iso|snippets|vztmpl|import)$/;
|
||||
}
|
||||
return ();
|
||||
}
|
||||
@ -2277,7 +2277,7 @@ sub volume_import_formats {
|
||||
return ();
|
||||
}
|
||||
return ('tar+size') if $format eq 'subvol';
|
||||
return ('raw+size') if $vtype =~ /^(iso|snippets|vztmpl|import)$/;
|
||||
return ('raw+size') if $vtype =~ /^(images|iso|snippets|vztmpl|import)$/;
|
||||
}
|
||||
return ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user