diff options
author | Armando Migliaccio <armando.migliaccio@citrix.com> | 2010-12-06 15:53:35 +0000 |
---|---|---|
committer | Armando Migliaccio <armando.migliaccio@citrix.com> | 2010-12-06 15:53:35 +0000 |
commit | f25a25d2693d603eb9a6f87d9629d53542219736 (patch) | |
tree | 8f967114c3a3d7b5d36346a9874fc6d3f05881aa /nova/virt/xenapi/__init__.py | |
parent | 1637de18a86712c52d89441c154a8e9aae6fb503 (diff) | |
download | nova-f25a25d2693d603eb9a6f87d9629d53542219736.tar.gz |
moved XenAPI namespace definition into xenapi/__init__.py
Diffstat (limited to 'nova/virt/xenapi/__init__.py')
-rw-r--r-- | nova/virt/xenapi/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nova/virt/xenapi/__init__.py b/nova/virt/xenapi/__init__.py index 3d598c463c..ece4304071 100644 --- a/nova/virt/xenapi/__init__.py +++ b/nova/virt/xenapi/__init__.py @@ -13,3 +13,14 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + +""" +This is loaded late so that there's no need to install this library +when not using XenAPI +""" + +XenAPI = None +global XenAPI + +if XenAPI is None: + XenAPI = __import__('XenAPI') |