dumpdir will be overwritten if a storage is specified Signed-off-by: Fabian Ebner <f.eb...@proxmox.com> --- PVE/VZDump.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index dceeb9ca..ce8796d9 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -449,7 +449,9 @@ sub new { } if (defined($opts->{storage}) && $opts->{stdout}) { - die "unable to use option 'storage' with option 'stdout'\n"; + die "cannot use options 'storage' and 'stdout' at the same time\n"; + } elsif (defined($opts->{storage}) && defined($opts->{dumpdir})) { + die "cannot use options 'storage' and 'dumpdir' at the same time\n"; } if (!$opts->{dumpdir} && !$opts->{storage}) { -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel