libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/2] libcloud git commit: fixed code formatting
Date Thu, 11 Aug 2016 05:40:55 GMT
fixed code formatting

Closes #849


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

Branch: refs/heads/trunk
Commit: 5268f2b7723d8f6db86677618388bddb74acb446
Parents: adb7549
Author: Ian White <ianw@Ians-iMac.local>
Authored: Tue Aug 9 12:06:49 2016 -0500
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Thu Aug 11 15:40:32 2016 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py   | 2 +-
 libcloud/test/compute/test_ec2.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5268f2b7/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 34ba97c..bc382e4 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -4310,7 +4310,7 @@ class BaseEC2NodeDriver(NodeDriver):
                   'ResourceId.0': resource.id}
         for i, key in enumerate(tags):
             params['Tag.%d.Key' % i] = key
-            if tags[key] != None:
+            if tags[key] is not None:
                 params['Tag.%d.Value' % i] = tags[key]
 
         res = self.connection.request(self.path,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/5268f2b7/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index 2716be2..307b2e3 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -681,11 +681,11 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
     def test_ex_delete_tags(self):
         node = Node('i-4382922a', None, None, None, None, self.driver)
         self.driver.ex_delete_tags(node, {'sample': 'tag'})
-    
+
     def test_ex_delete_tags2(self):
         node = Node('i-4382922a', None, None, None, None, self.driver)
         self.driver.ex_create_tags(node, {'sample': 'another tag'})
-        self.driver.ex_delete_tags(node, {'sample':None})
+        self.driver.ex_delete_tags(node, {'sample': None})
 
     def test_ex_describe_addresses_for_node(self):
         node1 = Node('i-4382922a', None, None, None, None, self.driver)


Mime
View raw message