diff options
| author | Gunnar Mills <gmills@us.ibm.com> | 2018-04-13 14:21:31 -0500 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2018-04-19 18:45:16 +0000 |
| commit | 17708f2aa210833edfa8a90c14b761e58592bffa (patch) | |
| tree | 337854d4114a4ef901f1be6b3058d03fcbca1da8 /app/common/services | |
| parent | 4dcc142fea0ac3b70047385ae74d4d9fcc23a2c9 (diff) | |
| download | phosphor-webui-17708f2aa210833edfa8a90c14b761e58592bffa.tar.gz phosphor-webui-17708f2aa210833edfa8a90c14b761e58592bffa.zip | |
Look at correct server information
Look at /xyz/openbmc_project/inventory/system for the server
information. Before the "server overview" page looked at the
BMC information for things like Server SerialNumber.
Resolves openbmc/openbmc#3095
Tested: Verified I see the correct server information now.
Change-Id: I562b28353d79fbf4a84e4c9a01db57d757a102a1
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common/services')
| -rw-r--r-- | app/common/services/api-utils.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js index e74b196..1e28127 100644 --- a/app/common/services/api-utils.js +++ b/app/common/services/api-utils.js @@ -887,6 +887,19 @@ window.angular && (function (angular) { }); return deferred.promise; }, + getServerInfo: function(){ + return $http({ + method: 'GET', + url: DataService.getHost() + "/xyz/openbmc_project/inventory/system", + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }, + withCredentials: true + }).then(function(response){ + return response.data; + }); + }, getHardwares: function(callback){ $http({ method: 'GET', |

