diff --git a/src/ImageSearchModal.jsx b/src/ImageSearchModal.jsx index 5a3898bce..2e9179097 100644 --- a/src/ImageSearchModal.jsx +++ b/src/ImageSearchModal.jsx @@ -63,7 +63,7 @@ export class ImageSearchModal extends React.Component { this.setState({ searchInProgress: true }); - varlink.connect(utils.PODMAN_ADDRESS) + varlink.connect(utils.PODMAN_ROOT_ADDRESS) .then(connection => { this.activeConnection = connection; diff --git a/src/util.js b/src/util.js index 50b1d06a5..8dbbb3a8a 100644 --- a/src/util.js +++ b/src/util.js @@ -3,7 +3,7 @@ import varlink from './varlink.js'; const _ = cockpit.gettext; -export const PODMAN_ADDRESS = "unix:/run/podman/io.podman"; +export const PODMAN_ROOT_ADDRESS = "unix:/run/podman/io.podman"; /* * Podman returns dates in the format that golang's time.String() exports. Use @@ -59,11 +59,11 @@ function handleVarlinkCallError(ex) { } export function podmanAction(name, args) { - return varlink.call(PODMAN_ADDRESS, "io.podman." + name, args); + return varlink.call(PODMAN_ROOT_ADDRESS, "io.podman." + name, args); } export function monitor(name, args, callback) { - return varlink.connect(PODMAN_ADDRESS) + return varlink.connect(PODMAN_ROOT_ADDRESS) .then(connection => { return connection.monitor("io.podman." + name, args, callback) }); }