updated get functions

This commit is contained in:
stupidon 2016-02-28 21:23:28 +01:00
parent c67651168a
commit 8ea4b64f93

View file

@ -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;
}