diff --git a/src/app.jsx b/src/app.jsx index 03d4ed58c..0af621a79 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -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, diff --git a/src/client.js b/src/client.js index 8778afda6..6a88740b6 100644 --- a/src/client.js +++ b/src/client.js @@ -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); });