Created
June 24, 2024 14:04
-
-
Save JVKeller/cbd74288fdf816b38d5155b58db5b46a to your computer and use it in GitHub Desktop.
Remove Subscription notice from Proxmox 8.2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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