Skip to content

Instantly share code, notes, and snippets.

@JVKeller
Created June 24, 2024 14:04
Show Gist options
  • Save JVKeller/cbd74288fdf816b38d5155b58db5b46a to your computer and use it in GitHub Desktop.
Save JVKeller/cbd74288fdf816b38d5155b58db5b46a to your computer and use it in GitHub Desktop.
Remove Subscription notice from Proxmox 8.2.2
at line 556-583:
checked_command: function(orig_cmd) {
// Make an API request to get subscription information
Proxmox.Utils.API2Request({
url: '/nodes/localhost/subscription',
method: 'GET',
success: function(response, opts) {
let res = response.result;
if (res === null || res === undefined || !res || res.data.status.toLowerCase() !== 'active') {
// Do nothing if there is no valid subscription
} else {
// Execute the original command if there is a valid subscription
orig_cmd();
}
},
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment