summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorNaveed Massjouni <naveedm9@gmail.com>2011-05-19 10:54:56 -0400
committerNaveed Massjouni <naveedm9@gmail.com>2011-05-19 10:54:56 -0400
commitdea0d808da06578d5125904eee72e5edd80f8e12 (patch)
tree4c9b02cbe0a7ea9340fdd5728d4b7e62910a5d5b /nova/virt
parentbeea6545804dc17661eea83b373d74d14cf07c32 (diff)
parent19e21e4a75dd34b05cfefc2ed5535297077ff97c (diff)
minor cleanup, plus had to merge because of diverged-branches issue
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/xenapi_conn.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/virt/xenapi_conn.py b/nova/virt/xenapi_conn.py
index eb572f295..6d828e109 100644
--- a/nova/virt/xenapi_conn.py
+++ b/nova/virt/xenapi_conn.py
@@ -169,15 +169,15 @@ class XenAPIConnection(driver.ComputeDriver):
def __init__(self, url, user, pw):
super(XenAPIConnection, self).__init__()
- session = XenAPISession(url, user, pw)
- self._vmops = VMOps(session)
- self._volumeops = VolumeOps(session)
+ self._session = XenAPISession(url, user, pw)
+ self._vmops = VMOps(self._session)
+ self._volumeops = VolumeOps(self._session)
self._host_state = None
@property
def HostState(self):
if not self._host_state:
- self._host_state = HostState(self.session)
+ self._host_state = HostState(self._session)
return self._host_state
def init_host(self, host):