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 29, 2020
1 parent 7f9b587 commit 37305e2
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 @@ -354,7 +354,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 37305e2

Please sign in to comment.