From f5154ee32315deba03174fcb2f3aa888ef474f6f Mon Sep 17 00:00:00 2001 From: Sabari Kumar Murugesan Date: Mon, 2 Mar 2015 14:12:29 -0800 Subject: [PATCH] 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 --- glance_store/_drivers/vmware_datastore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glance_store/_drivers/vmware_datastore.py b/glance_store/_drivers/vmware_datastore.py index e9ea4a17..fb37adc0 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.