mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 11:04:41 +00:00
cleanup: api/subscription: keep variable declarations closer to use
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7d6fba8fff
commit
7d762f4cc0
@ -104,14 +104,15 @@ __PACKAGE__->register_method ({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
my $server_id = PVE::API2Tools::get_hwaddress();
|
||||
my $url = "http://www.proxmox.com/products/proxmox-ve/subscription-service-plans";
|
||||
my $node = $param->{node};
|
||||
|
||||
my $rpcenv = PVE::RPCEnvironment::get();
|
||||
my $authuser = $rpcenv->get_user();
|
||||
my $has_permission = PVE::AccessControl::check_permissions($authuser, "/nodes/$node", 'Sys.Audit');
|
||||
|
||||
my $server_id = PVE::API2Tools::get_hwaddress();
|
||||
my $url = "http://www.proxmox.com/products/proxmox-ve/subscription-service-plans";
|
||||
|
||||
my $info = PVE::INotify::read_file('subscription');
|
||||
if (!$info) {
|
||||
my $no_subscription_info = {
|
||||
|
Loading…
Reference in New Issue
Block a user