libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [3/3] git commit: Fix lint.
Date Thu, 30 Jan 2014 11:16:50 GMT
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 <tomaz@apache.org>
Authored: Thu Jan 30 12:13:00 2014 +0100
Committer: Tomaz Muraus <tomaz@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)


Mime
View raw message