Skip to content

Commit

Permalink
Rename PODMAN_ADDRESS to PODMAN_ROOT_ADDRESS
Browse files Browse the repository at this point in the history
We want to introduce user address as well so lets distinguish it.
`
  • Loading branch information
marusak committed Sep 12, 2019
1 parent d19cd7a commit ed9026d
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_ROOT_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_ROOT_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 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) });
}

Expand Down

0 comments on commit ed9026d

Please sign in to comment.