Skip to content

Commit

Permalink
Use /libpod/info endpoints instead of compat /info one
Browse files Browse the repository at this point in the history
The compat one does not support registries listing.
  • Loading branch information
marusak committed Jul 27, 2020
1 parent 656f134 commit 7e350d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class Application extends React.Component {
init(system) {
client.getInfo(system)
.then(reply => {
this.setState({ [system ? "systemServiceAvailable" : "userServiceAvailable"]: true, version: reply.ServerVersion });
this.setState({ [system ? "systemServiceAvailable" : "userServiceAvailable"]: true, version: reply.version.Version });
this.updateImagesAfterEvent(system);
this.updateContainersAfterEvent(system, true);
client.streamEvents(system,
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function streamEvents(system, callback) {

export function getInfo(system) {
return new Promise((resolve, reject) => {
podmanCall("info", "GET", {}, system)
podmanCall("libpod/info", "GET", {}, system)
.then(reply => resolve(JSON.parse(reply)))
.catch(reject);
});
Expand Down

0 comments on commit 7e350d7

Please sign in to comment.