diff --git a/pkg/shell/machines/machines.js b/pkg/shell/machines/machines.js index cc1d75424021..b8bb9e85f881 100644 --- a/pkg/shell/machines/machines.js +++ b/pkg/shell/machines/machines.js @@ -220,15 +220,15 @@ function Machines() { } // FIXME: investigate re-using the proxy from Loader (runs in different frame/scope) - const bridge = cockpit.dbus(null, { bus: "internal", superuser: "try" }); + const bridge = cockpit.dbus(null, { bus: "internal", superuser: "require" }); const mod = bridge.call("/machines", "cockpit.Machines", "Update", ["99-webui.json", host, values_variant]) - .catch(function(error) { - console.error("failed to call cockpit.Machines.Update(): ", error); + .catch(error => { + // avoid make noise when we are not superuser + if (error.problem !== "access-denied") + console.error("failed to call cockpit.Machines.Update(): ", JSON.stringify(error)); }) - .then(() => { - self.overlay(host, values); - }); + .then(() => self.overlay(host, values)); return mod; } diff --git a/test/common/testlib.py b/test/common/testlib.py index 16eb5f800b7d..6172051cfc10 100644 --- a/test/common/testlib.py +++ b/test/common/testlib.py @@ -1721,7 +1721,6 @@ def login_and_go(self, path: Optional[str] = None, user: Optional[str] = None, h "aria-label", # messages from our own pages "CPU temperature metric closed.*", - "failed to call cockpit.Machines.Update().*", "Getting properties for problem.*", "Channel for reportd D-Bus client closed.*", ]