Skip to content

Commit

Permalink
Merge pull request #600 from notFloran/fix-create-server-volume-samples
Browse files Browse the repository at this point in the history
Fix samples for "create server from bootable volume"
  • Loading branch information
Jamie Hannaford committed May 15, 2015
2 parents 63c1cb1 + fdce9cc commit c475425
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion samples/Compute/create_server_from_bootable_volume.php
Expand Up @@ -47,7 +47,8 @@
$response = $server->create(array(
'name' => '{serverName}',
'imageId' => '{imageId}',
'flavorId' => '{flavorId}'
'flavorId' => '{flavorId}',
'volume' => $bootableVolume
));
} catch (BadResponseException $e) {
echo $e->getResponse();
Expand Down
Expand Up @@ -47,9 +47,11 @@
// list_images.php scripts.
try {
$response = $server->create(array(
'name' => '{serverName}',
'imageId' => '{imageId}',
'flavorId' => '{flavorId}'
'name' => '{serverName}',
'imageId' => '{imageId}',
'flavorId' => '{flavorId}',
'volume' => $bootableVolume,
'volumeDeleteOnTermination' => true
));
} catch (BadResponseException $e) {
echo $e->getResponse();
Expand Down

0 comments on commit c475425

Please sign in to comment.