summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSabari Kumar Murugesan <smurugesan@vmware.com>2015-03-02 14:12:29 -0800
committerSabari Kumar Murugesan <smurugesan@vmware.com>2015-03-02 14:12:40 -0800
commitf5154ee32315deba03174fcb2f3aa888ef474f6f (patch)
tree0b2aa224476e9563c00eefcd8944fddd5082e8b0
parentc5eb4fc54dd4adb8c52a089c3591dc9d0ef1cc50 (diff)
downloadglance_store-f5154ee32315deba03174fcb2f3aa888ef474f6f.tar.gz
Enable DRIVER_REUSABLE for vmware store
VMware store is reusable and there is no need to re-create the store instance everytime. Change-Id: Ieb311e07dec6896286a025c1f24e10d247d22a7e
-rw-r--r--glance_store/_drivers/vmware_datastore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glance_store/_drivers/vmware_datastore.py b/glance_store/_drivers/vmware_datastore.py
index e9ea4a1..fb37adc 100644
--- a/glance_store/_drivers/vmware_datastore.py
+++ b/glance_store/_drivers/vmware_datastore.py
@@ -221,7 +221,8 @@ class StoreLocation(location.StoreLocation):
class Store(glance_store.Store):
"""An implementation of the VMware datastore adapter."""
- _CAPABILITIES = capabilities.BitMasks.RW_ACCESS
+ _CAPABILITIES = (capabilities.BitMasks.RW_ACCESS |
+ capabilities.BitMasks.DRIVER_REUSABLE)
OPTIONS = _VMWARE_OPTS
WRITE_CHUNKSIZE = units.Mi
# FIXME(arnaud): re-visit this code once the store API is cleaned up.