Modification of options for create_image
This commit is contained in:
parent
6e7c71db77
commit
8ad2a0aacd
2 changed files with 42 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue