X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FCommands%2FGuestStatus.pm;h=03e2e4aea3a6b65ddc5ccb85a7f44c6e4edc965b;hp=92f424d1a937f86dfb1c0dcf7d52ce21c1895e77;hb=aa66d1df95af8a2919953c50b4f3c6190148818b;hpb=42de9764b4136b003c7d2cb80e709adb7c4c22a4 diff --git a/PVE/APIClient/Commands/GuestStatus.pm b/PVE/APIClient/Commands/GuestStatus.pm index 92f424d..03e2e4a 100644 --- a/PVE/APIClient/Commands/GuestStatus.pm +++ b/PVE/APIClient/Commands/GuestStatus.pm @@ -64,7 +64,8 @@ __PACKAGE__->register_method ({ timeout => { description => "Timeout in seconds", type => 'integer', - minimum => 1 + minimum => 1, + optional => 1, }, }, }, @@ -98,7 +99,8 @@ __PACKAGE__->register_method ({ timeout => { description => "Timeout in seconds", type => 'integer', - minimum => 1 + minimum => 1, + optional => 1, }, }, }, @@ -178,8 +180,8 @@ __PACKAGE__->register_method ({ code => sub { my ($param) = @_; - my $remote = PVE::Tools::extract_param($param, 'remote'); - my $vmid = PVE::Tools::extract_param($param, 'vmid'); + my $remote = PVE::APIClient::Tools::extract_param($param, 'remote'); + my $vmid = PVE::APIClient::Tools::extract_param($param, 'vmid'); my $config = PVE::APIClient::Config->load(); my $conn = PVE::APIClient::Config->remote_conn($config, $remote);