summaryrefslogtreecommitdiff
path: root/server/core/App.php
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-02-28 19:10:51 +0100
committerEoleDev <EoleDev@outlook.fr>2016-02-28 19:10:51 +0100
commit3fe5596998b88e20aa3965a5b44d0a8ec9f0a4cb (patch)
tree176c0db121bc4d99e2d3bb33e0be3e144baa611a /server/core/App.php
parentc1990e951bffed5383e53a820666a94b88c5c11c (diff)
Correct Error in App, Add Compute in App, add Network in Index
Diffstat (limited to 'server/core/App.php')
-rwxr-xr-xserver/core/App.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/core/App.php b/server/core/App.php
index 5495a1f..282a1db 100755
--- a/server/core/App.php
+++ b/server/core/App.php
@@ -33,7 +33,7 @@ class App{
public function setToken($token){
$this->tokenPost = $token;
- $this->tokenClass->loadBackup($his->tokenPost);
+ $this->tokenClass->loadBackup($this->tokenPost);
}
@@ -55,6 +55,11 @@ class App{
$opt = $this->tokenClass->getOptions($service);
return $this->openstack->networkingV2($opt);
break;
+ case "Compute":
+ if($this->tokenPost == NULL) $this->tokenClass->genComputeToken();
+ $opt = $this->tokenClass->getOptions($service);
+ return $this->openstack->computeV2($opt);
+ break;
}
}
@@ -102,4 +107,4 @@ class App{
echo json_encode($this->output);
}
-} \ No newline at end of file
+}