Merge "Add validate_location"

This commit is contained in:
Jenkins 2014-07-30 15:07:00 +00:00 committed by Gerrit Code Review
commit 732d5e0251
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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