Update HostVirtual compute driver to use super and take in all the supported arguments.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/409f97dc Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/409f97dc Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/409f97dc Branch: refs/heads/trunk Commit: 409f97dcd10d9db92a6e8ccd7b4b4611b71cfbed Parents: 29c0be7 Author: Tomaz Muraus <[email protected]> Authored: Mon Dec 30 14:22:49 2013 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Mon Dec 30 14:22:49 2013 +0100 ---------------------------------------------------------------------- libcloud/compute/drivers/hostvirtual.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/409f97dc/libcloud/compute/drivers/hostvirtual.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/hostvirtual.py b/libcloud/compute/drivers/hostvirtual.py index e6b9141..a024273 100644 --- a/libcloud/compute/drivers/hostvirtual.py +++ b/libcloud/compute/drivers/hostvirtual.py @@ -64,9 +64,10 @@ class HostVirtualNodeDriver(NodeDriver): connectionCls = HostVirtualComputeConnection features = {'create_node': ['ssh_key', 'password']} - def __init__(self, key): + def __init__(self, key, secure=True, host=None, port=None): self.location = None - NodeDriver.__init__(self, key) + super(HostVirtualNodeDriver, self).__init__(key=key, secure=secure, + host=host, port=port) def _to_node(self, data): state = NODE_STATE_MAP[data['status']]
