Error / Conflict Correction
This commit is contained in:
parent
85b5ebaa18
commit
11dc33c440
2 changed files with 2 additions and 13 deletions
2
server/core/Compute.php
Normal file → Executable file
2
server/core/Compute.php
Normal file → Executable file
|
@ -269,7 +269,7 @@ class compute
|
|||
$imageId = $this->app->getPostParam("imageId");
|
||||
$newName = $this->app->getPostParam("newName");
|
||||
$adminPass = $this->app->getPostParam("adminPass");
|
||||
if(!isset($serverId)|| !isset($imageId) || isset($newName) || isset($adminPass)) ){
|
||||
if(!isset($serverId)|| !isset($imageId) || isset($newName) || isset($adminPass)) {
|
||||
$this->app->setOutput("Error", "You'll have to provide server ID and the new image, name and admin password!");
|
||||
return;
|
||||
}
|
||||
|
|
13
server/core/Image.php
Normal file → Executable file
13
server/core/Image.php
Normal file → Executable file
|
@ -70,12 +70,7 @@ class image implements Core{
|
|||
* options for the image creation
|
||||
*
|
||||
**/
|
||||
<<<<<<< HEAD
|
||||
private function createImage(array $opt){
|
||||
|
||||
=======
|
||||
private function createImage(){
|
||||
>>>>>>> develop
|
||||
$opt = $this->app->getPostParam("opt");
|
||||
|
||||
|
||||
|
@ -408,15 +403,9 @@ class image implements Core{
|
|||
* @param string $id
|
||||
* identifier of the image
|
||||
**/
|
||||
<<<<<<< HEAD
|
||||
private function downloadImage($id){
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
=======
|
||||
private function downloadImage(){
|
||||
>>>>>>> develop
|
||||
$id = $this->app->getPostParam("id");
|
||||
>>>>>>> develop
|
||||
|
||||
if(!isset($id)){
|
||||
$this->app->setOutput("Error", "Incorrect parameter");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue