docs: Remove references to novaclient

Change-Id: Ieb1dc77f311a2e279036587a1f8d575a387494d0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2024-05-07 11:51:52 +01:00
parent 0f006392ac
commit 3f781cc3f9

View File

@@ -29,8 +29,9 @@ Example
This example is taken from ``keypair create`` where the ``--public-key`` option This example is taken from ``keypair create`` where the ``--public-key`` option
specifies a file containing the public key to upload. If the file is not found, specifies a file containing the public key to upload. If the file is not found,
the IOError exception is trapped and a more specific CommandError exception is the ``IOError`` exception is trapped and a more specific ``CommandError``
raised that includes the name of the file that was attempted to be opened. exception is raised that includes the name of the file that was attempted to be
opened.
.. code-block:: python .. code-block:: python
@@ -40,7 +41,7 @@ raised that includes the name of the file that was attempted to be opened.
## ... ## ...
def take_action(self, parsed_args): def take_action(self, parsed_args):
compute_client = self.app.client_manager.compute compute_client = self.app.client_manager.sdk_connection.compute
public_key = parsed_args.public_key public_key = parsed_args.public_key
if public_key: if public_key:
@@ -56,8 +57,8 @@ raised that includes the name of the file that was attempted to be opened.
msg % (parsed_args.public_key, e), msg % (parsed_args.public_key, e),
) )
keypair = compute_client.keypairs.create( keypair = compute_client.create_keypair(
parsed_args.name, name=parsed_args.name,
public_key=public_key, public_key=public_key,
) )