mirror of
https://github.com/openkmip/pykmip
synced 2025-12-19 09:43:47 +00:00
Added support for LOCATE operation
This commit is contained in:
@@ -45,3 +45,10 @@ class MemRepo(ManagedObjectRepo):
|
||||
return False
|
||||
del self.repo[uuid]
|
||||
return True
|
||||
|
||||
def locate(self, maximum_items, storage_status_mask,
|
||||
object_group_member, attributes):
|
||||
# TODO - search objects, find one with matching attrs
|
||||
if "1" in self.repo:
|
||||
return [self.repo["1"]]
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user