FirstApp - Shade key pair location
Adds a note that you may need to use the absolute path to avoid an IOerror. Closes-Bug: #1555855 Change-Id: I18b1fdb896bb55da78b7ab0ac49e154520086beb
This commit is contained in:
parent
ddbc019403
commit
6d785f0888
@ -43,7 +43,7 @@ conn.delete_server(name_or_id=instance_name)
|
|||||||
#step-9
|
#step-9
|
||||||
print('Checking for existing SSH keypair...')
|
print('Checking for existing SSH keypair...')
|
||||||
keypair_name = 'demokey'
|
keypair_name = 'demokey'
|
||||||
pub_key_file = '~/.ssh/demo_key.pub'
|
pub_key_file = '/home/username/.ssh/id_rsa.pub'
|
||||||
|
|
||||||
if conn.search_keypairs(keypair_name):
|
if conn.search_keypairs(keypair_name):
|
||||||
print('Keypair already exists. Skipping import.')
|
print('Keypair already exists. Skipping import.')
|
||||||
|
@ -1183,6 +1183,9 @@ your public SSH key file.
|
|||||||
|
|
||||||
.. only:: libcloud
|
.. only:: libcloud
|
||||||
|
|
||||||
|
.. note:: If you see an IOError, you may need to change ``~/.ssh/`` to
|
||||||
|
``/home/{USERNAME}/.ssh/``, using an absolute path.
|
||||||
|
|
||||||
.. literalinclude:: ../samples/libcloud/getting_started.py
|
.. literalinclude:: ../samples/libcloud/getting_started.py
|
||||||
:start-after: step-9
|
:start-after: step-9
|
||||||
:end-before: step-10
|
:end-before: step-10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user