summaryrefslogtreecommitdiff
path: root/src/leap/services
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-06 18:05:25 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-07 14:13:09 -0300
commit088db436880edd8c8ae51f792fc707d962927485 (patch)
tree937de9e68a799ae5e31a653541f7ee0ee7c1eef6 /src/leap/services
parent4ee2773660a571b180732ef41446399edf8501ac (diff)
Move code to common.BaseConfig
Diffstat (limited to 'src/leap/services')
-rw-r--r--src/leap/services/eip/eipconfig.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/leap/services/eip/eipconfig.py b/src/leap/services/eip/eipconfig.py
index 2f2f6e7c..da44c3a6 100644
--- a/src/leap/services/eip/eipconfig.py
+++ b/src/leap/services/eip/eipconfig.py
@@ -137,26 +137,7 @@ class EIPConfig(BaseConfig):
def __init__(self):
BaseConfig.__init__(self)
self._api_version = None
-
- def _get_spec(self):
- """
- Returns the spec object for the specific configuration
- """
- leap_assert(self._api_version is not None,
- "You should set the API version.")
-
- return get_schema(self._api_version)
-
- def set_api_version(self, version):
- """
- Sets the supported api version.
-
- :param api_version: the version of the api supported by the provider.
- :type api_version: str
- """
- self._api_version = version
- leap_assert(get_schema(self._api_version) is not None,
- "Version %s is not supported." % (version, ))
+ self._get_schema = get_schema
def get_clusters(self):
# TODO: create an abstraction for clusters