updated get functions
This commit is contained in:
parent
c67651168a
commit
8ea4b64f93
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,7 @@ class compute
|
|||
$serverId = $this->app->getPostParam("serverId");
|
||||
$opt = array('id' => $serverId);
|
||||
$server = $this->libClass->getServer($opt);
|
||||
$server->retrieve();
|
||||
$this->app->setOutput("MyServer", $server);
|
||||
return;
|
||||
}
|
||||
|
@ -90,6 +91,7 @@ class compute
|
|||
$flavorId = $this->app->getPostParam("flavorId");
|
||||
$opt = array('id' => $flavorId);
|
||||
$flavor = $this->libClass->getFlavor($opt);
|
||||
$flavor->retrieve();
|
||||
$this->app->setOutput("MyFlavor", $flavor);
|
||||
return;
|
||||
}
|
||||
|
@ -102,6 +104,7 @@ class compute
|
|||
$imageId = $this->app->getPostParam("imageId");
|
||||
$opt = array('id' => $imageId);
|
||||
$image = $this->libClass->getImage($opt);
|
||||
$image->retrieve();
|
||||
$this->app->setOutput("MyImage", $image);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue