diff options
author | Abhishek Kekane <akekane@redhat.com> | 2019-05-20 07:58:37 +0000 |
---|---|---|
committer | Abhishek Kekane <akekane@redhat.com> | 2019-06-03 16:16:58 +0000 |
commit | d5dc27e7d389cd00ece53e62f2b1e643ea115fd3 (patch) | |
tree | dff7ce52201afd31ac12d6b1d669da084edfc1ac /glance_store/driver.py | |
parent | f92cafed23b1f9a975ee70777e99f67ffd340999 (diff) | |
download | glance_store-d5dc27e7d389cd00ece53e62f2b1e643ea115fd3.tar.gz |
Add location prefix url to store instance
For updating location metadata with store information to the images
which are existed prior to enabling multiple stores, added new
public attribute 'url_prefix' to each of the store instance.
Implements: blueprint location-uri-prefix
Change-Id: Icd760d30e947867c2b5b87f86bbe4b1a4240d214
Diffstat (limited to 'glance_store/driver.py')
-rw-r--r-- | glance_store/driver.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glance_store/driver.py b/glance_store/driver.py index 0881a47..b11012a 100644 --- a/glance_store/driver.py +++ b/glance_store/driver.py @@ -61,6 +61,7 @@ class Store(capabilities.StoreCapability): self.conf = conf self.backend_group = backend self.store_location_class = None + self._url_prefix = None try: if self.OPTIONS is not None: @@ -75,6 +76,10 @@ class Store(capabilities.StoreCapability): except cfg.DuplicateOptError: pass + @property + def url_prefix(self): + return self._url_prefix + def configure(self, re_raise_bsc=False): """ Configure the store to use the stored configuration options |