mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:25:58 +00:00
cli: subscription: simplify printing output in get command
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fc3e061bd0
commit
75d1eb55ae
@ -51,13 +51,10 @@ __PACKAGE__->register_method({
|
||||
|
||||
our $cmddef = {
|
||||
update => [ 'PVE::API2::Subscription', 'update', undef, { node => $nodename } ],
|
||||
get => [ 'PVE::API2::Subscription', 'get', undef, { node => $nodename },
|
||||
sub {
|
||||
my $info = shift;
|
||||
foreach my $k (sort keys %$info) {
|
||||
print "$k: $info->{$k}\n";
|
||||
}
|
||||
}],
|
||||
get => [ 'PVE::API2::Subscription', 'get', undef, { node => $nodename }, sub {
|
||||
my $info = shift;
|
||||
print "$_: $info->{$_}\n" for sort keys %$info;
|
||||
}],
|
||||
set => [ 'PVE::API2::Subscription', 'set', ['key'], { node => $nodename } ],
|
||||
"set-offline-key" => [ __PACKAGE__, 'set_offline_key', ['data'] ],
|
||||
delete => [ 'PVE::API2::Subscription', 'delete', undef, { node => $nodename } ],
|
||||
|
Loading…
Reference in New Issue
Block a user