summaryrefslogtreecommitdiff
path: root/server/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/test.php')
-rw-r--r--server/test.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/test.php b/server/test.php
index 71039e8..47d780b 100644
--- a/server/test.php
+++ b/server/test.php
@@ -38,9 +38,9 @@ $image = new Image($openstack, $optImage);
$opt = Array();
$opt['name'] = "Test";
-//$opt['tags'] = 'test';
-$opt['containerFormat'] = 'ami';
-$opt['diskFormat'] = 'iso';
+$opt['tags'] = ['test', 'openstack'];
+//$opt['containerFormat'] = 'ami';
+//$opt['diskFormat'] = 'iso';
$opt['visibility'] = 'public';
$opt['minDisk'] = 1;
$opt['protected'] = false;
@@ -58,12 +58,17 @@ foreach($images as $i){
echo $i->name;
if($i->name == "Test"){
$id_image = $i->id;
+ $list = $i->tags;
echo $i->status;
}
echo "</br>";
}
echo "</br>";
+foreach ($list as $l) {
+ echo $l;
+ echo "</br>";
+}
// Détails Image
//$details = $image->image_details($id_image);