Skip to content

Commit

Permalink
Rename PODMAN_ADDRESS to PODMAN_SYSTEM_ADDRESS
Browse files Browse the repository at this point in the history
We want to introduce user address as well so lets distinguish it.

Closes cockpit-project#212
  • Loading branch information
marusak committed Oct 2, 2019
1 parent a676017 commit 4bcd825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ImageSearchModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ImageSearchModal extends React.Component {

this.setState({ searchInProgress: true });

varlink.connect(utils.PODMAN_ADDRESS)
varlink.connect(utils.PODMAN_SYSTEM_ADDRESS)
.then(connection => {
this.activeConnection = connection;

Expand Down
6 changes: 3 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import varlink from './varlink.js';

const _ = cockpit.gettext;

export const PODMAN_ADDRESS = "unix:/run/podman/io.podman";
export const PODMAN_SYSTEM_ADDRESS = "unix:/run/podman/io.podman";

/*
* Podman returns dates in the format that golang's time.String() exports. Use
Expand Down Expand Up @@ -59,11 +59,11 @@ function handleVarlinkCallError(ex) {
}

export function podmanCall(name, args) {
return varlink.call(PODMAN_ADDRESS, "io.podman." + name, args);
return varlink.call(PODMAN_SYSTEM_ADDRESS, "io.podman." + name, args);
}

export function monitor(name, args, callback, on_close) {
return varlink.connect(PODMAN_ADDRESS)
return varlink.connect(PODMAN_SYSTEM_ADDRESS)
.then(connection => connection.monitor("io.podman." + name, args, callback))
.catch(e => {
if (e.name === "ConnectionClosed")
Expand Down

0 comments on commit 4bcd825

Please sign in to comment.