Softlayer driver: fix flake8 styling
Closes #1066

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

Branch: refs/heads/trunk
Commit: cb21d010dddaf482200c3f8b6fef482b938a53ac
Parents: 4231709
Author: Francois Regnoult <francois.regno...@wandera.com>
Authored: Thu Aug 3 12:56:11 2017 +0100
Committer: Anthony Shaw <anthonys...@apache.org>
Committed: Fri Aug 11 14:33:46 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/softlayer.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/cb21d010/libcloud/compute/drivers/softlayer.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/softlayer.py 
b/libcloud/compute/drivers/softlayer.py
index f5b9b15..3d8dbb5 100644
--- a/libcloud/compute/drivers/softlayer.py
+++ b/libcloud/compute/drivers/softlayer.py
@@ -24,7 +24,6 @@ except ImportError:
     crypto = False
 
 from libcloud.common.softlayer import SoftLayerConnection, SoftLayerException
-from libcloud.common.types import LibcloudError
 from libcloud.compute.types import Provider, NodeState
 from libcloud.compute.base import NodeDriver, Node, NodeLocation, NodeSize, \
     NodeImage, KeyPair
@@ -447,8 +446,8 @@ class SoftLayerNodeDriver(NodeDriver):
         images = self.list_images()
         images = [image for image in images if image.id == image_id]
         if len(images) < 1:
-            raise SoftLayerException('could not find the image with id %s'\
-                                % image_id)
+            raise SoftLayerException('could not find the image with id %s'
+                                     % image_id)
         image = images[0]
         return image
 

Reply via email to