Skip to content

Commit

Permalink
Add support for 1.1 API and many other improvements for the OpenStack…
Browse files Browse the repository at this point in the history
… driver.

This patch is part of LIBCLOUD-83. External contributors include Mike Nerone and
Brad Morgan.


git-svn-id: https://svn.apache.org/repos/asf/libcloud/trunk@1183722 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Kami committed Oct 15, 2011
1 parent 885722e commit 9b78a10
Show file tree
Hide file tree
Showing 17 changed files with 841 additions and 130 deletions.
8 changes: 7 additions & 1 deletion libcloud/common/base.py
Expand Up @@ -520,7 +520,8 @@ class BaseDriver(object):

connectionCls = ConnectionKey

def __init__(self, key, secret=None, secure=True, host=None, port=None):
def __init__(self, key, secret=None, secure=True, host=None, port=None,
api_version=None):
"""
@keyword key: API key or username to used
@type key: str
Expand All @@ -537,6 +538,11 @@ def __init__(self, key, secret=None, secure=True, host=None, port=None):
@keyword port: Override port used for connections.
@type port: int
@keyword api_version: Optional API version. Only used by drivers
which support multiple API versions.
@type api_version: str
"""
self.key = key
self.secret = secret
Expand Down
6 changes: 4 additions & 2 deletions libcloud/compute/base.py
Expand Up @@ -351,9 +351,11 @@ class NodeDriver(BaseDriver):

NODE_STATE_MAP = {}

def __init__(self, key, secret=None, secure=True, host=None, port=None):
def __init__(self, key, secret=None, secure=True, host=None, port=None,
api_version=None):
super(NodeDriver, self).__init__(key=key, secret=secret, secure=secure,
host=host, port=port)
host=host, port=port,
api_version=api_version)

def create_node(self, **kwargs):
"""Create a new node instance.
Expand Down

0 comments on commit 9b78a10

Please sign in to comment.