in src/agentmgr.js [562:577]
async getOpenWhiskVersion() {
if (this.openwhiskVersion === undefined) {
try {
const json = await this.wsk.actions.client.request("GET", "/api/v1");
if (json && typeof json.build === "string") {
this.openwhiskVersion = json.build;
} else {
this.openwhiskVersion = null;
}
} catch (e) {
log.warn("Could not retrieve OpenWhisk version:", e.message);
this.openwhiskVersion = null;
}
}
return this.openwhiskVersion;
}