Repository: libcloud Updated Branches: refs/heads/trunk 30bc00944 -> 45d8a3441
Simplify code, remove outdated comments. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/087da806 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/087da806 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/087da806 Branch: refs/heads/trunk Commit: 087da806768a1f950c888a416256b2f6489b76a6 Parents: 30bc009 Author: Tomaz Muraus <[email protected]> Authored: Wed Aug 13 15:03:56 2014 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Wed Aug 13 16:34:03 2014 +0200 ---------------------------------------------------------------------- libcloud/storage/drivers/cloudfiles.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/087da806/libcloud/storage/drivers/cloudfiles.py ---------------------------------------------------------------------- diff --git a/libcloud/storage/drivers/cloudfiles.py b/libcloud/storage/drivers/cloudfiles.py index d1f88a3..b0694ac 100644 --- a/libcloud/storage/drivers/cloudfiles.py +++ b/libcloud/storage/drivers/cloudfiles.py @@ -210,10 +210,7 @@ class CloudFilesConnection(OpenStackSwiftConnection): if self.cdn_request: ep = cdn_ep - if not ep: - raise LibcloudError('Could not find specified endpoint') - - if not ep.url: + if not ep or not ep.url: raise LibcloudError('Could not find specified endpoint') return ep.url
