]> git.proxmox.com Git - pve-manager.git/commitdiff
pvesubscription: add missing return statement
authorAlexander Zeidler <a.zeidler@proxmox.com>
Mon, 29 Jan 2024 09:47:05 +0000 (10:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Feb 2024 18:16:49 +0000 (19:16 +0100)
to avoid a failing null check and its error message. This confused
users since the activation was successful anyway.

Signed-off-by: Alexander Zeidler <a.zeidler@proxmox.com>
PVE/CLI/pvesubscription.pm

index efd4ada4a529dd71cc4ef9c30d5e9be93a913f22..51f5b71e760ccccedd710e0ced00827f1182598e 100755 (executable)
@@ -48,6 +48,8 @@ __PACKAGE__->register_method({
        PVE::API2::Subscription::check_key($info->{key}, PVE::API2::Subscription::get_sockets());
 
        PVE::API2::Subscription::write_etc_subscription($info);
+
+       return;
 }});
 
 our $cmddef = {