]> git.proxmox.com Git - pve-manager.git/blame - PVE/CLI/pvesubscription.pm
pve6to7: storage content: skip scanning storage if shared
[pve-manager.git] / PVE / CLI / pvesubscription.pm
CommitLineData
8002175e
DM
1package PVE::CLI::pvesubscription;
2
3use strict;
4use warnings;
5
6use PVE::Tools;
7use PVE::SafeSyslog;
8use PVE::INotify;
9use PVE::RPCEnvironment;
10use PVE::CLIHandler;
11use PVE::API2::Subscription;
12
13use base qw(PVE::CLIHandler);
14
15my $nodename = PVE::INotify::nodename();
16
7e017024
DM
17sub setup_environment {
18 PVE::RPCEnvironment->setup_default_cli_env();
19}
20
8002175e
DM
21our $cmddef = {
22 update => [ 'PVE::API2::Subscription', 'update', undef, { node => $nodename } ],
23 get => [ 'PVE::API2::Subscription', 'get', undef, { node => $nodename },
24 sub {
25 my $info = shift;
26 foreach my $k (sort keys %$info) {
27 print "$k: $info->{$k}\n";
28 }
29 }],
30 set => [ 'PVE::API2::Subscription', 'set', ['key'], { node => $nodename } ],
85222f82 31 delete => [ 'PVE::API2::Subscription', 'delete', undef, { node => $nodename } ],
8002175e
DM
32};
33
341;