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:
Marcela Bonell 2016-03-14 12:00:53 -06:00 committed by Anne Gentle
parent ddbc019403
commit 6d785f0888
2 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@ conn.delete_server(name_or_id=instance_name)
#step-9
print('Checking for existing SSH keypair...')
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):
print('Keypair already exists. Skipping import.')

View File

@ -1183,6 +1183,9 @@ your public SSH key file.
.. 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
:start-after: step-9
:end-before: step-10