diff --git a/roles/pve/files/remove_nag.patch b/roles/pve/files/remove_nag.patch index eb0f054..e35ce68 100644 --- a/roles/pve/files/remove_nag.patch +++ b/roles/pve/files/remove_nag.patch @@ -1,11 +1,18 @@ ---- /usr/share/perl5/PVE/API2/Subscription.pm.orig 2022-11-02 13:38:18.626006187 +0100 -+++ /usr/share/perl5/PVE/API2/Subscription.pm 2022-11-02 13:41:27.097618728 +0100 -@@ -114,7 +114,7 @@ - my $info = read_etc_subscription(); - if (!$info) { - my $no_subscription_info = { -- status => "notfound", -+ status => "active", - message => "There is no subscription key", - url => $url, - }; +diff --git a/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.orig b/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js +index ebf9c64..dab16a4 100644 +--- a/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.orig ++++ b/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js +@@ -608,12 +608,7 @@ Ext.define('Proxmox.Utils', { + }, + success: function (response, opts) { + let res = response.result; +- if ( +- res === null || +- res === undefined || +- !res || +- res.data.status.toLowerCase() !== 'active' +- ) { ++ if (false) { + Ext.Msg.show({ + title: gettext('No valid subscription'), + icon: Ext.Msg.WARNING, diff --git a/roles/pve/tasks/main.yml b/roles/pve/tasks/main.yml index a1bb102..8be2792 100644 --- a/roles/pve/tasks/main.yml +++ b/roles/pve/tasks/main.yml @@ -35,9 +35,8 @@ tags: pve - name: Remove registration nag - patch: src=remove_nag.patch dest=/usr/share/perl5/PVE/API2/Subscription.pm + patch: src=remove_nag.patch dest=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ignore_errors: True # Don't fail on old PVE where the patch doesn't apply - notify: restart pveproxy tags: pve - name: Ensure dehydrated hook dir exists