]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/GuestStatus.pm
Fix old none ::APIClient uses.
[pve-client.git] / PVE / APIClient / Commands / GuestStatus.pm
index 92f424d1a937f86dfb1c0dcf7d52ce21c1895e77..03e2e4aea3a6b65ddc5ccb85a7f44c6e4edc965b 100644 (file)
@@ -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);