]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node: repos: always skip "you get updates" on parsing error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jul 2021 14:39:21 +0000 (16:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jul 2021 14:39:24 +0000 (16:39 +0200)
As normally that means that the host does not gets updates, as most
apt use will fail too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js

index b3a457094147f14007fd9dfb34cb2688a78d7f00..4a37adb3e74cc1371ad61fa1e697e833e4eae2e1 100644 (file)
@@ -463,6 +463,8 @@ Ext.define('Proxmox.node.APTRepositories', {
                addCritical(
                    Ext.String.format(gettext('No {0} repository is enabled, you do not get any updates!'), vm.get('product')),
                );
+           } else if (errors.length > 0) {
+               // nothing extra, just avoid that we show "get updates"
            } else if (enterprise && !nosubscription && !test && activeSubscription) {
                addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product')));
            } else if (nosubscription || test) {