~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/virt/vmwareapi_conn.py

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya
  • Date: 2011-04-12 22:01:39 UTC
  • mfrom: (981.2.1 lp758810)
  • Revision ID: tarmac-20110412220139-rxp9bif44xgdt7h9
Fixes VMware Connection to inherit from ComputeDriver

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
from nova import flags
43
43
from nova import log as logging
44
44
from nova import utils
 
45
from nova.virt import driver
45
46
from nova.virt.vmwareapi import error_util
46
47
from nova.virt.vmwareapi import vim
47
48
from nova.virt.vmwareapi import vim_util
104
105
                               api_retry_count)
105
106
 
106
107
 
107
 
class VMWareESXConnection(object):
 
108
class VMWareESXConnection(driver.ComputeDriver):
108
109
    """The ESX host connection object."""
109
110
 
110
111
    def __init__(self, host_ip, host_username, host_password,
111
112
                 api_retry_count, scheme="https"):
 
113
        super(VMWareESXConnection, self).__init__()
112
114
        session = VMWareAPISession(host_ip, host_username, host_password,
113
115
                                   api_retry_count, scheme=scheme)
114
116
        self._vmops = VMWareVMOps(session)