my $pw;
if ($pkgfile->{Origin} eq 'Proxmox' && $pkgfile->{Component} eq 'pmg-enterprise') {
- my $info = PVE::INotify::read_file('subscription');
- if ($info->{status} eq 'Active') {
+ my $info = PMG::API2::Subscription::read_etc_subscription();
+ if ($info->{status} eq 'active') {
$username = $info->{key};
$pw = PMG::Utils::get_hwaddress();
$ua->credentials("enterprise.proxmox.com:443", 'pmg-enterprise-repository',