mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 14:53:38 +00:00
test for CLI when using pipe
This commit is contained in:
parent
4925fe8ec1
commit
bc4dcb99a1
@ -144,6 +144,9 @@ __PACKAGE__->register_method({
|
|||||||
} else {
|
} else {
|
||||||
my $keystr = join(' ', keys %$param);
|
my $keystr = join(' ', keys %$param);
|
||||||
raise_param_exc({ archive => "option conflicts with other options ($keystr)"}) if $keystr;
|
raise_param_exc({ archive => "option conflicts with other options ($keystr)"}) if $keystr;
|
||||||
|
|
||||||
|
die "pipe requires cli environment\n"
|
||||||
|
if $archive eq '-' && $rpcenv->{type} ne 'cli';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $restorefn = sub {
|
my $restorefn = sub {
|
||||||
|
Loading…
Reference in New Issue
Block a user