X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=pveclient;h=4abe7b73a6a2b4020df28c58dc2bed617d222bcc;hp=8b07853fca30f85905916143f9f7f21a8b6acc0b;hb=89335fb1777461e08e9af18c6c4c8a7e162588c5;hpb=654a262843b28140f4b3dc6e10e6b6447f95e27f diff --git a/pveclient b/pveclient index 8b07853..4abe7b7 100755 --- a/pveclient +++ b/pveclient @@ -18,7 +18,7 @@ use PVE::APIClient::Commands::config; use PVE::APIClient::Commands::remote; use PVE::APIClient::Commands::list; use PVE::APIClient::Commands::lxc; -use PVE::APIClient::Commands::start; +use PVE::APIClient::Commands::GuestStatus; use JSON; @@ -162,7 +162,8 @@ our $cmddef = { lxc => $PVE::APIClient::Commands::lxc::cmddef, remote => $PVE::APIClient::Commands::remote::cmddef, - start => $PVE::APIClient::Commands::start::cmddef, + start => [ 'PVE::APIClient::Commands::GuestStatus', 'start', ['remote', 'vmid']], + stop => [ 'PVE::APIClient::Commands::GuestStatus', 'stop', ['remote', 'vmid']], api => { get => [ __PACKAGE__, 'pveclient_get', ['remote', 'api_path']],