Merge "Add validate_location"
This commit is contained in:
commit
732d5e0251
|
@ -369,3 +369,8 @@ def set_acls(location_uri, public=False, read_tenants=[],
|
|||
write_tenants=write_tenants)
|
||||
except NotImplementedError:
|
||||
LOG.debug(_("Skipping store.set_acls... not implemented."))
|
||||
|
||||
|
||||
def validate_location(uri, context=None):
|
||||
store = get_store_from_uri(uri)
|
||||
store.validate_location(uri)
|
||||
|
|
|
@ -103,6 +103,13 @@ class Store(object):
|
|||
"""
|
||||
# NOTE(flaper87): This should probably go away
|
||||
|
||||
def validate_location(self, location):
|
||||
"""
|
||||
Takes a location and validates it for the presence
|
||||
of any account references
|
||||
"""
|
||||
pass
|
||||
|
||||
def get(self, location, offset=0, chunk_size=None, context=None):
|
||||
"""
|
||||
Takes a `glance.store.location.Location` object that indicates
|
||||
|
|
Loading…
Reference in New Issue