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:50 UTC

[3/3] git commit: Fix lint.

Fix lint.


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

Branch: refs/heads/trunk
Commit: 37abf99c55303a7b9b59050e324cd603ba30ff7f
Parents: 324303a
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Jan 30 12:13:00 2014 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Jan 30 12:13:00 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/37abf99c/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 86d44d0..2079cef 100644
--- a/docs/examples/compute/import_key_pair_from_file.py
+++ b/docs/examples/compute/import_key_pair_from_file.py
@@ -10,4 +10,5 @@ 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(name='my_key', 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/37abf99c/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 43e6d69..b465449 100644
--- a/docs/examples/compute/import_key_pair_from_string.py
+++ b/docs/examples/compute/import_key_pair_from_string.py
@@ -12,7 +12,9 @@ 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')
+
 with open(key_file_path, 'r') as fp:
     key_material = fp.read()
 
-key_pair = conn.import_key_pair_from_string(name='my_key', key_material=key_material)
+key_pair = conn.import_key_pair_from_string(name='my_key',
+                                            key_material=key_material)