test
This commit is contained in:
parent
df7cfba96b
commit
cdc3c2cdcb
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
|
|||
var requestParserResult={};
|
||||
requestParserResult.status=1;
|
||||
requestParserResult.failReason=null;
|
||||
console.log(response.data.Images[Object.keys(response.data.Images)[0]])
|
||||
console.log(response.data.Servers[Object.keys(response.data.Servers)[0]])
|
||||
if (typeof response.data.Servers !== 'undefined') {
|
||||
// Set status code
|
||||
requestParserResult.status=0;
|
||||
|
@ -40,7 +40,7 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
|
|||
var params={
|
||||
"token" : Identity.getToken(),
|
||||
"task" : "compute",
|
||||
"action":"listImages"
|
||||
"action":"listServers"
|
||||
};
|
||||
|
||||
var result=$http.post('../server/index.php',
|
||||
|
|
Loading…
Add table
Reference in a new issue