From 5c1f2e7fbafcc58a257c1a619cea8ec0793b49b2 Mon Sep 17 00:00:00 2001 From: Kevin Zhao Date: Mon, 19 Sep 2016 17:06:57 +0800 Subject: [PATCH] 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 --- doc/admin-guide/source/compute-security.rst | 2 +- doc/ops-guide/source/ops-user-facing-operations.rst | 4 ++-- doc/user-guide/source/cli-cheat-sheet.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/admin-guide/source/compute-security.rst b/doc/admin-guide/source/compute-security.rst index 55c18f6980..50a422f415 100644 --- a/doc/admin-guide/source/compute-security.rst +++ b/doc/admin-guide/source/compute-security.rst @@ -134,7 +134,7 @@ settings: .. 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 diff --git a/doc/ops-guide/source/ops-user-facing-operations.rst b/doc/ops-guide/source/ops-user-facing-operations.rst index 2c682130d2..8a9973db30 100644 --- a/doc/ops-guide/source/ops-user-facing-operations.rst +++ b/doc/ops-guide/source/ops-user-facing-operations.rst @@ -1821,12 +1821,12 @@ Use this command to register an existing key with OpenStack: You must have the matching private key to access instances 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: .. 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 can more easily identify it among other running instances. Use the diff --git a/doc/user-guide/source/cli-cheat-sheet.rst b/doc/user-guide/source/cli-cheat-sheet.rst index 6346f662cf..1d73eb8f54 100644 --- a/doc/user-guide/source/cli-cheat-sheet.rst +++ b/doc/user-guide/source/cli-cheat-sheet.rst @@ -243,7 +243,7 @@ Start an instance (boot) .. code-block:: console $ 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