@@ -113,14 +113,14 @@ def get_collection_edr_instances(api: API, request: APIRequest,
113113
114114 if instance_id is not None :
115115 try :
116- if p .get_instance (instance_id ):
116+ if p .instance (instance_id ):
117117 instances = [instance_id ]
118118 except ProviderItemNotFoundError :
119119 msg = 'Instance not found'
120120 return api .get_exception (
121121 HTTPStatus .NOT_FOUND , headers , request .format , 'NotFound' , msg )
122122 else :
123- instances = p .get_instances ()
123+ instances = p .instances ()
124124
125125 for instance in instances :
126126 instance_dict = {
@@ -281,7 +281,7 @@ def get_collection_edr_query(api: API, request: APIRequest,
281281 err .http_status_code , headers , request .format ,
282282 err .ogc_exception_code , err .message )
283283
284- if instance is not None and not p .get_instance (instance ):
284+ if instance is not None and not p .instance (instance ):
285285 msg = 'Invalid instance identifier'
286286 return api .get_exception (
287287 HTTPStatus .BAD_REQUEST , headers ,
0 commit comments