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 2015/03/28 15:51:28 UTC

[11/16] libcloud git commit: Remove obsolete classes - class per region approach has been deprecated a long time ago.

Remove obsolete classes - class per region approach has been deprecated a long
time ago.


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

Branch: refs/heads/trunk
Commit: 35ddbe17cab6fedc03718128b13298e7b64bb1de
Parents: a84f578
Author: Tomaz Muraus <to...@apache.org>
Authored: Sat Mar 7 16:55:05 2015 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Mar 7 16:55:05 2015 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 22 +---------------------
 libcloud/compute/providers.py   |  2 --
 libcloud/compute/types.py       |  1 -
 3 files changed, 1 insertion(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/35ddbe17/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 8f64705..368925b 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -34,8 +34,7 @@ from libcloud.utils.xml import fixxpath, findtext, findattr, findall
 from libcloud.utils.publickey import get_pubkey_ssh2_fingerprint
 from libcloud.utils.publickey import get_pubkey_comment
 from libcloud.utils.iso8601 import parse_date
-from libcloud.common.aws import (AWSBaseResponse, SignedAWSConnection,
-                                 V4SignedAWSConnection)
+from libcloud.common.aws import AWSBaseResponse, SignedAWSConnection
 from libcloud.common.aws import DEFAULT_SIGNATURE_VERSION
 from libcloud.common.types import (InvalidCredsError, MalformedResponseError,
                                    LibcloudError)
@@ -1719,16 +1718,6 @@ class EC2Connection(SignedAWSConnection):
     service_name = 'ec2'
 
 
-class EC2V4Connection(V4SignedAWSConnection):
-    """
-    Represents a single connection to an EC2 Endpoint using signature v4.
-    """
-    version = API_VERSION
-    host = REGION_DETAILS['us-east-1']['endpoint']
-    responseCls = EC2Response
-    service_name = 'ec2'
-
-
 class ExEC2AvailabilityZone(object):
     """
     Extension class which stores information about an EC2 availability zone.
@@ -5605,15 +5594,6 @@ class EC2EUNodeDriver(EC2NodeDriver):
     _region = 'eu-west-1'
 
 
-class EC2EUCentralNodeDriver(EC2NodeDriver):
-    """
-    Driver class for EC2 in the Central Europe Region.
-    """
-    connectionCls = EC2V4Connection
-    name = 'Amazon EC2 (eu-central-1)'
-    _region = 'eu-central-1'
-
-
 class EC2USWestNodeDriver(EC2NodeDriver):
     """
     Driver class for EC2 in the Western US Region

http://git-wip-us.apache.org/repos/asf/libcloud/blob/35ddbe17/libcloud/compute/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/providers.py b/libcloud/compute/providers.py
index bf0c38e..bdceafc 100644
--- a/libcloud/compute/providers.py
+++ b/libcloud/compute/providers.py
@@ -33,8 +33,6 @@ DRIVERS = {
     ('libcloud.compute.drivers.ec2', 'EC2NodeDriver'),
     Provider.EC2_EU_WEST:
     ('libcloud.compute.drivers.ec2', 'EC2EUNodeDriver'),
-    Provider.EC2_EU_CENTRAL:
-    ('libcloud.compute.drivers.ec2', 'EC2EUCentralNodeDriver'),
     Provider.EC2_US_WEST:
     ('libcloud.compute.drivers.ec2', 'EC2USWestNodeDriver'),
     Provider.EC2_US_WEST_OREGON:

http://git-wip-us.apache.org/repos/asf/libcloud/blob/35ddbe17/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 061827e..c21a4d1 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -135,7 +135,6 @@ class Provider(object):
     EC2_US_EAST = 'ec2_us_east'
     EC2_EU = 'ec2_eu_west'  # deprecated name
     EC2_EU_WEST = 'ec2_eu_west'
-    EC2_EU_CENTRAL = 'ec2_eu_central'
     EC2_US_WEST = 'ec2_us_west'
     EC2_AP_SOUTHEAST = 'ec2_ap_southeast'
     EC2_AP_NORTHEAST = 'ec2_ap_northeast'