Inconsistent flavor type fix in 'Getting started' chapter for firstapp.
In 'Flavors and images' section, different flavor was suggested in text and different used in command. Bug fixed for libcloud, dotnet and pkgcloud SDKs. Change-Id: I69cb5e92eee56190f32a11f75325daf05d37462c Closes-Bug: #1463546
This commit is contained in:
parent
4542d7f98a
commit
1713281304
@ -59,7 +59,7 @@ namespace openstack
|
|||||||
_image.Name));
|
_image.Name));
|
||||||
|
|
||||||
// step-5
|
// step-5
|
||||||
var flavor_id = "42";
|
var flavor_id = "2";
|
||||||
var _flavor = conn.GetFlavor (flavor_id, region: region);
|
var _flavor = conn.GetFlavor (flavor_id, region: region);
|
||||||
Console.WriteLine (string.Format(
|
Console.WriteLine (string.Format(
|
||||||
"Flavor Id: {0} - Flavor Name: {1}",
|
"Flavor Id: {0} - Flavor Name: {1}",
|
||||||
|
@ -32,7 +32,7 @@ image = conn.get_image(image_id)
|
|||||||
print(image)
|
print(image)
|
||||||
|
|
||||||
# step-5
|
# step-5
|
||||||
flavor_id = '3'
|
flavor_id = '2'
|
||||||
flavor = conn.ex_get_size(flavor_id)
|
flavor = conn.ex_get_size(flavor_id)
|
||||||
print(flavor)
|
print(flavor)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ conn.getImage(image_id, function(err, image) {
|
|||||||
|
|
||||||
|
|
||||||
// step-5
|
// step-5
|
||||||
flavor_id = '3';
|
flavor_id = 'cba9ea52-8e90-468b-b8c2-777a94d81ed3';
|
||||||
conn.getFlavor(flavor_id, function(err, flavor) {
|
conn.getFlavor(flavor_id, function(err, flavor) {
|
||||||
console.log("id: " + flavor.id);
|
console.log("id: " + flavor.id);
|
||||||
console.log("name: " + flavor.name);
|
console.log("name: " + flavor.name);
|
||||||
|
@ -27,7 +27,7 @@ A general overview
|
|||||||
|
|
||||||
This tutorial shows two applications. The first application is a simple
|
This tutorial shows two applications. The first application is a simple
|
||||||
fractal generator that uses mathematical equations to generate beautiful
|
fractal generator that uses mathematical equations to generate beautiful
|
||||||
`fractal images <http://en.wikipedia.org/wiki/Fractal>`_ . We show you this
|
`fractal images <http://en.wikipedia.org/wiki/Fractal>`_. We show you this
|
||||||
application in its entirety so that you can compare it to a second, more
|
application in its entirety so that you can compare it to a second, more
|
||||||
robust, application.
|
robust, application.
|
||||||
|
|
||||||
@ -593,7 +593,7 @@ Next, choose which flavor you want to use:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
<OpenStackNodeSize: id=3, name=m1.medium, ram=4096, disk=40, bandwidth=None, price=0.0, driver=OpenStack, vcpus=2, ...>
|
<OpenStackNodeSize: id=2, name=m1.small, ram=2048, disk=20, bandwidth=None, price=0.0, driver=OpenStack, vcpus=1, ...>
|
||||||
|
|
||||||
.. only:: pkgcloud
|
.. only:: pkgcloud
|
||||||
|
|
||||||
@ -606,7 +606,7 @@ Next, choose which flavor you want to use:
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
|
|
||||||
id: 3
|
id: cba9ea52-8e90-468b-b8c2-777a94d81ed3
|
||||||
name: m1.small
|
name: m1.small
|
||||||
ram: 2048
|
ram: 2048
|
||||||
disk: 20
|
disk: 20
|
||||||
@ -624,12 +624,12 @@ Next, choose which flavor you want to use:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
Flavor Id: 42 - Flavor Name: m1.nano
|
Flavor Id: 2 - Flavor Name: m1.small
|
||||||
|
|
||||||
.. only:: shade
|
.. only:: shade
|
||||||
|
|
||||||
Since shade can either use the ID or the name in most API calls,
|
Because shade accepts either the ID or name in most API calls, specify the
|
||||||
let's specify the name for the flavor.
|
name for the flavor:
|
||||||
|
|
||||||
.. literalinclude:: ../samples/shade/getting_started.py
|
.. literalinclude:: ../samples/shade/getting_started.py
|
||||||
:start-after: step-5
|
:start-after: step-5
|
||||||
|
Loading…
Reference in New Issue
Block a user