Change the parameters "--key_name" to "--key-name"

Since the "--key_name" has been deprecated by python-novaclient

Change-Id: I67ca59e96d3bdf7fbef8f1bbe89d681adefebe5d
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
This commit is contained in:
Kevin Zhao 2016-09-19 17:06:57 +08:00
parent 60fc7cc585
commit 5c1f2e7fba
3 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ settings:
.. code-block:: console .. code-block:: console
$ nova boot --flavor m1.tiny --key_name myKeypairName --image myImageID newInstanceName $ nova boot --flavor m1.tiny --key-name myKeypairName --image myImageID newInstanceName
.. figure:: figures/OpenStackTrustedComputePool2.png .. figure:: figures/OpenStackTrustedComputePool2.png

View File

@ -1821,12 +1821,12 @@ Use this command to register an existing key with OpenStack:
You must have the matching private key to access instances You must have the matching private key to access instances
associated with this key. associated with this key.
To associate a key with an instance on boot, add :option:`--key_name mykey` to To associate a key with an instance on boot, add :option:`--key-name mykey` to
your command line. For example: your command line. For example:
.. code-block:: console .. code-block:: console
$ nova boot --image ubuntu-cloudimage --flavor 2 --key_name mykey myimage $ nova boot --image ubuntu-cloudimage --flavor 2 --key-name mykey myimage
When booting a server, you can also add arbitrary metadata so that you When booting a server, you can also add arbitrary metadata so that you
can more easily identify it among other running instances. Use the can more easily identify it among other running instances. Use the

View File

@ -243,7 +243,7 @@ Start an instance (boot)
.. code-block:: console .. code-block:: console
$ nova boot --image cirros-0.3.0-x86_64 --flavor m1.small \ $ nova boot --image cirros-0.3.0-x86_64 --flavor m1.small \
--key_name test MyFirstServer --key-name test MyFirstServer
Use ssh to connect to the instance Use ssh to connect to the instance