You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/01/30 12:16:49 UTC

[2/3] git commit: Add 'name' argument to key pair importing examples

Add 'name' argument to key pair importing examples

Closes #232.

Signed-off-by: Tomaz Muraus <to...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/324303a4
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/324303a4
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/324303a4

Branch: refs/heads/trunk
Commit: 324303a423527786403812a26d9177d60b6afd78
Parents: 3776473
Author: briancurtin <br...@rackspace.com>
Authored: Wed Jan 29 22:50:46 2014 -0600
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Jan 30 12:11:38 2014 +0100

----------------------------------------------------------------------
 docs/examples/compute/import_key_pair_from_file.py   | 2 +-
 docs/examples/compute/import_key_pair_from_string.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/324303a4/docs/examples/compute/import_key_pair_from_file.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/import_key_pair_from_file.py b/docs/examples/compute/import_key_pair_from_file.py
index d14e0b2..86d44d0 100644
--- a/docs/examples/compute/import_key_pair_from_file.py
+++ b/docs/examples/compute/import_key_pair_from_file.py
@@ -10,4 +10,4 @@ Driver = get_driver(Provider.EC2)
 conn = Driver(EC2_ACCESS_ID, EC2_SECRET_KEY)
 
 key_file_path = os.path.expanduser('~/.ssh/id_rsa_my_key_pair_1.pub')
-key_pair = conn.import_key_pair_from_file(key_file_path=key_file_path)
+key_pair = conn.import_key_pair_from_file(name='my_key', key_file_path=key_file_path)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/324303a4/docs/examples/compute/import_key_pair_from_string.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/import_key_pair_from_string.py b/docs/examples/compute/import_key_pair_from_string.py
index 67e8c2e..43e6d69 100644
--- a/docs/examples/compute/import_key_pair_from_string.py
+++ b/docs/examples/compute/import_key_pair_from_string.py
@@ -15,4 +15,4 @@ key_file_path = os.path.expanduser('~/.ssh/id_rsa_my_key_pair_1.pub')
 with open(key_file_path, 'r') as fp:
     key_material = fp.read()
 
-key_pair = conn.import_key_pair_from_string(key_material=key_material)
+key_pair = conn.import_key_pair_from_string(name='my_key', key_material=key_material)